Skip to content

Commit 28db539

Browse files
authored
Show more settings for empty repositories (#29130)
Shows more settings for empty repositories (Fixes #29060)
1 parent 4fe3712 commit 28db539

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

templates/repo/settings/navbar.tmpl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@
1212
{{ctx.Locale.Tr "repo.settings.hooks"}}
1313
</a>
1414
{{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>
15+
{{if .Repository.UnitEnabled $.Context $.UnitTypeCode}}
16+
{{if not .Repository.IsEmpty}}
17+
<a class="{{if .PageIsSettingsBranches}}active {{end}}item" href="{{.RepoLink}}/settings/branches">
18+
{{ctx.Locale.Tr "repo.settings.branches"}}
19+
</a>
20+
{{end}}
1921
<a class="{{if .PageIsSettingsTags}}active {{end}}item" href="{{.RepoLink}}/settings/tags">
2022
{{ctx.Locale.Tr "repo.settings.tags"}}
2123
</a>

0 commit comments

Comments
 (0)