We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fe3712 commit 28db539Copy full SHA for 28db539
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