Skip to content

Commit b03af9e

Browse files
zokkisearl-warren
authored andcommitted
Show more settings for empty repositories (go-gitea#29130)
Shows more settings for empty repositories (Fixes go-gitea#29060) (cherry picked from commit 28db539)
1 parent f7491db commit b03af9e

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
@@ -29,10 +29,12 @@
2929
{{ctx.Locale.Tr "repo.settings.hooks"}}
3030
</a>
3131
{{end}}
32-
{{if and (.Repository.UnitEnabled $.Context $.UnitTypeCode) (not .Repository.IsEmpty)}}
33-
<a class="{{if .PageIsSettingsBranches}}active {{end}}item" href="{{.RepoLink}}/settings/branches">
34-
{{ctx.Locale.Tr "repo.settings.branches"}}
35-
</a>
32+
{{if .Repository.UnitEnabled $.Context $.UnitTypeCode}}
33+
{{if not .Repository.IsEmpty}}
34+
<a class="{{if .PageIsSettingsBranches}}active {{end}}item" href="{{.RepoLink}}/settings/branches">
35+
{{ctx.Locale.Tr "repo.settings.branches"}}
36+
</a>
37+
{{end}}
3638
<a class="{{if .PageIsSettingsTags}}active {{end}}item" href="{{.RepoLink}}/settings/tags">
3739
{{ctx.Locale.Tr "repo.settings.tags"}}
3840
</a>

0 commit comments

Comments
 (0)