Skip to content

Commit 679a55f

Browse files
committed
Remove Dashboard/Home button from the navbar
1 parent cd8db3a commit 679a55f

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

templates/base/head_navbar.tmpl

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div class="ui container" id="navbar">
22
<div class="item brand" style="justify-content: space-between;">
3-
<a href="{{AppSubUrl}}/">
3+
<a href="{{AppSubUrl}}/" title="{{if .IsSigned}}{{.i18n.Tr "dashboard"}}{{else}}{{.i18n.Tr "home"}}{{end}}">
44
<img class="ui mini image" width="30" height="30" src="{{AssetUrlPrefix}}/img/logo.svg">
55
</a>
66
<div class="ui basic icon button mobile-only" id="navbar-expand-toggle">
@@ -11,7 +11,6 @@
1111
{{if and .IsSigned .MustChangePassword}}
1212
{{/* No links */}}
1313
{{else if .IsSigned}}
14-
<a class="item {{if .PageIsDashboard}}active{{end}}" href="{{AppSubUrl}}/">{{.i18n.Tr "dashboard"}}</a>
1514
{{if not .UnitIssuesGlobalDisabled}}
1615
<a class="item {{if .PageIsIssues}}active{{end}}" href="{{AppSubUrl}}/issues">{{.i18n.Tr "issues"}}</a>
1716
{{end}}
@@ -23,12 +22,7 @@
2322
{{end}}
2423
<a class="item {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "explore"}}</a>
2524
{{else if .IsLandingPageHome}}
26-
<a class="item {{if .PageIsHome}}active{{end}}" href="{{AppSubUrl}}/">{{.i18n.Tr "home"}}</a>
2725
<a class="item {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "explore"}}</a>
28-
{{else if .IsLandingPageExplore}}
29-
<a class="item {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "home"}}</a>
30-
{{else if .IsLandingPageOrganizations}}
31-
<a class="item {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/organizations">{{.i18n.Tr "home"}}</a>
3226
{{end}}
3327

3428
{{template "custom/extra_links" .}}

0 commit comments

Comments
 (0)