diff --git a/templates/user/dashboard/navbar.tmpl b/templates/user/dashboard/navbar.tmpl index d80ac2e88a..25670f470b 100644 --- a/templates/user/dashboard/navbar.tmpl +++ b/templates/user/dashboard/navbar.tmpl @@ -46,16 +46,20 @@ {{svg "octicon-rss"}} {{.i18n.Tr "activities"}} + {{if not .UnitIssuesGlobalDisabled}} {{svg "octicon-issue-opened"}} {{.i18n.Tr "issues"}} + {{end}} + {{if not .UnitPullsGlobalDisabled}} {{svg "octicon-git-pull-request"}} {{.i18n.Tr "pull_requests"}} - {{if .ShowMilestonesDashboardPage}} - - {{svg "octicon-milestone"}} {{.i18n.Tr "milestones"}} - + {{end}} + {{if and .ShowMilestonesDashboardPage (not (and .UnitIssuesGlobalDisabled .UnitPullsGlobalDisabled))}} + + {{svg "octicon-milestone"}} {{.i18n.Tr "milestones"}} + {{end}}