Skip to content

Commit 2098212

Browse files
n194axifive
authored and
Stelios Malathouras
committed
Remove Dashboard/Home button from the navbar (go-gitea#16844)
This removes the Dashboard/Home buttons and adds its text to the title of the logo. Co-authored-by: Alexey 〒erentyev <[email protected]>
1 parent 282729f commit 2098212

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

templates/base/head_navbar.tmpl

+4-8
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}}/" class="item poping up" data-content="{{if .IsSigned}}{{.i18n.Tr "dashboard"}}{{else}}{{.i18n.Tr "home"}}{{end}}" data-variation="tiny inverted">
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}}
@@ -22,13 +21,10 @@
2221
{{if .ShowMilestonesDashboardPage}}<a class="item {{if .PageIsMilestonesDashboard}}active{{end}}" href="{{AppSubUrl}}/milestones">{{.i18n.Tr "milestones"}}</a>{{end}}
2322
{{end}}
2423
<a class="item {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "explore"}}</a>
25-
{{else if .IsLandingPageHome}}
26-
<a class="item {{if .PageIsHome}}active{{end}}" href="{{AppSubUrl}}/">{{.i18n.Tr "home"}}</a>
27-
<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>
3024
{{else if .IsLandingPageOrganizations}}
31-
<a class="item {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/organizations">{{.i18n.Tr "home"}}</a>
25+
<a class="item {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/organizations">{{.i18n.Tr "explore"}}</a>
26+
{{else}}
27+
<a class="item {{if .PageIsExplore}}active{{end}}" href="{{AppSubUrl}}/explore/repos">{{.i18n.Tr "explore"}}</a>
3228
{{end}}
3329

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

0 commit comments

Comments
 (0)