|
1 | 1 | <div class="ui container" id="navbar">
|
2 | 2 | <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"> |
4 | 4 | <img class="ui mini image" width="30" height="30" src="{{AssetUrlPrefix}}/img/logo.svg">
|
5 | 5 | </a>
|
6 | 6 | <div class="ui basic icon button mobile-only" id="navbar-expand-toggle">
|
|
11 | 11 | {{if and .IsSigned .MustChangePassword}}
|
12 | 12 | {{/* No links */}}
|
13 | 13 | {{else if .IsSigned}}
|
14 |
| - <a class="item {{if .PageIsDashboard}}active{{end}}" href="{{AppSubUrl}}/">{{.i18n.Tr "dashboard"}}</a> |
15 | 14 | {{if not .UnitIssuesGlobalDisabled}}
|
16 | 15 | <a class="item {{if .PageIsIssues}}active{{end}}" href="{{AppSubUrl}}/issues">{{.i18n.Tr "issues"}}</a>
|
17 | 16 | {{end}}
|
|
22 | 21 | {{if .ShowMilestonesDashboardPage}}<a class="item {{if .PageIsMilestonesDashboard}}active{{end}}" href="{{AppSubUrl}}/milestones">{{.i18n.Tr "milestones"}}</a>{{end}}
|
23 | 22 | {{end}}
|
24 | 23 | <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> |
30 | 24 | {{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> |
32 | 28 | {{end}}
|
33 | 29 |
|
34 | 30 | {{template "custom/extra_links" .}}
|
|
0 commit comments