summaryrefslogtreecommitdiffstats
path: root/templates/user/dashboard/navbar.tmpl
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-02 20:04:18 -0400
committerUnknwon <u@gogs.io>2015-09-02 20:04:18 -0400
commit5c5ccddb02113027f0b1a24e836ee61eebd56729 (patch)
tree6fad32def077dcddc0c72dda96cedc96b5a504a4 /templates/user/dashboard/navbar.tmpl
parentc0a899b15182fc717207dadb33a0d55024dce109 (diff)
downloadgitea-5c5ccddb02113027f0b1a24e836ee61eebd56729.tar.gz
gitea-5c5ccddb02113027f0b1a24e836ee61eebd56729.zip
fix buttons style
Diffstat (limited to 'templates/user/dashboard/navbar.tmpl')
-rw-r--r--templates/user/dashboard/navbar.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/user/dashboard/navbar.tmpl b/templates/user/dashboard/navbar.tmpl
index d87f766674..5a7fbf7b54 100644
--- a/templates/user/dashboard/navbar.tmpl
+++ b/templates/user/dashboard/navbar.tmpl
@@ -10,12 +10,12 @@
{{.i18n.Tr "home.switch_dashboard_context"}}
</div>
<div class="items">
- <a class="{{if eq .ContextUser.Id .SignedUser.Id}}active selected{{end}} item" href="{{AppSubUrl}}/issues">
+ <a class="{{if eq .ContextUser.Id .SignedUser.Id}}active selected{{end}} item" href="{{AppSubUrl}}/{{if .PageIsIssues}}issues{{else}}pulls{{end}}">
<img class="ui avatar image" src="{{.SignedUser.AvatarLink}}">
{{.SignedUser.Name}}
</a>
{{range .Orgs}}
- <a class="{{if eq $.ContextUser.Id .Id}}active selected{{end}} item" href="{{AppSubUrl}}/org/{{.Name}}/issues">
+ <a class="{{if eq $.ContextUser.Id .Id}}active selected{{end}} item" href="{{AppSubUrl}}/org/{{.Name}}/{{if $.PageIsIssues}}issues{{else}}pulls{{end}}">
<img class="ui avatar image" src="{{.AvatarLink}}">
{{.Name}}
</a>