We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f97f3f commit 7b28458Copy full SHA for 7b28458
templates/repo/settings/navbar.tmpl
@@ -12,10 +12,12 @@
12
{{ctx.Locale.Tr "repo.settings.hooks"}}
13
</a>
14
{{end}}
15
- {{if and (.Repository.UnitEnabled $.Context $.UnitTypeCode) (not .Repository.IsEmpty)}}
16
- <a class="{{if .PageIsSettingsBranches}}active {{end}}item" href="{{.RepoLink}}/settings/branches">
17
- {{ctx.Locale.Tr "repo.settings.branches"}}
18
- </a>
+ {{if .Repository.UnitEnabled $.Context $.UnitTypeCode}}
+ {{if not .Repository.IsEmpty}}
+ <a class="{{if .PageIsSettingsBranches}}active {{end}}item" href="{{.RepoLink}}/settings/branches">
+ {{ctx.Locale.Tr "repo.settings.branches"}}
19
+ </a>
20
+ {{end}}
21
<a class="{{if .PageIsSettingsTags}}active {{end}}item" href="{{.RepoLink}}/settings/tags">
22
{{ctx.Locale.Tr "repo.settings.tags"}}
23
0 commit comments