diff options
author | slene <vslene@gmail.com> | 2014-03-15 15:28:06 +0800 |
---|---|---|
committer | slene <vslene@gmail.com> | 2014-03-15 15:28:06 +0800 |
commit | 06deed820d9f48ecf972c8716b17ad58b91ab9b9 (patch) | |
tree | fc94500dd1dd607d1c6470f89abadcba84bbc285 /templates/base/navbar.tmpl | |
parent | e251b9bbca35e01060ac3b2ee0bd836dc7719c19 (diff) | |
download | gitea-06deed820d9f48ecf972c8716b17ad58b91ab9b9.tar.gz gitea-06deed820d9f48ecf972c8716b17ad58b91ab9b9.zip |
Add HomeLink and AvatarLink to User model. Please use .SignedUser in template.
Diffstat (limited to 'templates/base/navbar.tmpl')
-rw-r--r-- | templates/base/navbar.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/base/navbar.tmpl b/templates/base/navbar.tmpl index 38fc0a3992..9d5cc07bd3 100644 --- a/templates/base/navbar.tmpl +++ b/templates/base/navbar.tmpl @@ -6,8 +6,8 @@ <a class="gogs-nav-item" href="#">Explore</a> <a class="gogs-nav-item" href="#">Help</a>{{if .IsSigned}} <a id="gogs-nav-out" class="gogs-nav-item navbar-right navbar-btn btn btn-danger" href="/user/logout/"><i class="fa fa-power-off fa-lg"></i></a> - <a id="gogs-nav-avatar" class="gogs-nav-item navbar-right" href="/user/{{.SignedUserName}}" data-toggle="tooltip" data-placement="bottom" title="{{.SignedUserName}}"> - <img src="http://1.gravatar.com/avatar/{{.SignedAvatar}}?s=28" alt="user-avatar" title="username"/> + <a id="gogs-nav-avatar" class="gogs-nav-item navbar-right" href="{{.SignedUser.HomeLink}}" data-toggle="tooltip" data-placement="bottom" title="{{.SignedUserName}}"> + <img src="{{.SignedUser.AvatarLink}}?s=28" alt="user-avatar" title="username"/> </a> <a class="navbar-right gogs-nav-item" href="/repo/create" data-toggle="tooltip" data-placement="bottom" title="New Repository"><i class="fa fa-plus fa-lg"></i></a> <a class="navbar-right gogs-nav-item{{if .PageIsUserSetting}} active{{end}}" href="/user/setting" data-toggle="tooltip" data-placement="bottom" title="Setting"><i class="fa fa-cogs fa-lg"></i></a> |