Skip to content

Commit f394cd7

Browse files
lunnyzokkis
andauthored
Show more settings for empty repositories (#29130) (#30635)
Fix #30620 Manullay Backport #29130 Shows more settings for empty repositories (Fixes #29060) Co-authored-by: Tim-Nicas Oelschläger <[email protected]>
1 parent 32f895f commit f394cd7

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)