diff options
Diffstat (limited to 'templates/user')
-rw-r--r-- | templates/user/dashboard/nav.tmpl | 4 | ||||
-rw-r--r-- | templates/user/dashboard/navbar.tmpl | 20 |
2 files changed, 21 insertions, 3 deletions
diff --git a/templates/user/dashboard/nav.tmpl b/templates/user/dashboard/nav.tmpl index d0820c8ec1..0549bbe949 100644 --- a/templates/user/dashboard/nav.tmpl +++ b/templates/user/dashboard/nav.tmpl @@ -33,11 +33,9 @@ </ul> </div> </li> - {{if not .ContextUser.IsOrganization}} <li class="right"> - <a {{if $.PageIsIssues}}class="current"{{end}} href="{{.ContextUser.DashboardLink}}issues"><i class="octicon octicon-issue-opened"></i>{{.i18n.Tr "issues"}}</a> + <a {{if $.PageIsIssues}}class="current"{{end}} href="{{AppSubUrl}}/{{if .ContextUser.IsOrganization}}org/{{.ContextUser.Name}}/{{end}}issues"><i class="octicon octicon-issue-opened"></i>{{.i18n.Tr "issues"}}</a> </li> - {{end}} <!-- <li class="right"> <a {{if .PageIsPulls}}class="current"{{end}} href="{{.ContextUser.DashboardLink}}pulls"><i class="octicon octicon-git-pull-request"></i>{{.i18n.Tr "pull_requests"}}</a> </li> --> diff --git a/templates/user/dashboard/navbar.tmpl b/templates/user/dashboard/navbar.tmpl index 6e14b4bdaf..e486a042cb 100644 --- a/templates/user/dashboard/navbar.tmpl +++ b/templates/user/dashboard/navbar.tmpl @@ -26,5 +26,25 @@ </a> </div> </div> + + {{if .ContextUser.IsOrganization}} + <div class="ui right"> + <div class="ui secondary head menu"> + <a class="{{if .PageIsNews}}active{{end}} item" href="{{AppSubUrl}}/org/{{.ContextUser.Name}}/dashboard"> + <i class="octicon octicon-rss"></i> {{.i18n.Tr "news_feed"}} + </a> + <a class="{{if .PageIsIssues}}active{{end}} item" href="{{AppSubUrl}}/org/{{.ContextUser.Name}}/issues"> + <i class="octicon octicon-issue-opened"></i> {{.i18n.Tr "issues"}} + </a> + <div class="right menu"> + <div class="item"> + <a class="ui blue basic button" href="{{AppSubUrl}}/org/{{.ContextUser.Name}}"> + {{.i18n.Tr "home.view_home" .ContextUser.Name}} + </a> + </div> + </div> + </div> + </div> + {{end}} </div> <div class="ui divider"></div>
\ No newline at end of file |