Show more settings for empty repositories (#29130)

Shows more settings for empty repositories (Fixes #29060)
pull/29099/head^2
Tim-Nicas Oelschläger 9 months ago committed by GitHub
parent 4fe37124e9
commit 28db539d9c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 10
      templates/repo/settings/navbar.tmpl

@ -12,10 +12,12 @@
{{ctx.Locale.Tr "repo.settings.hooks"}}
</a>
{{end}}
{{if and (.Repository.UnitEnabled $.Context $.UnitTypeCode) (not .Repository.IsEmpty)}}
<a class="{{if .PageIsSettingsBranches}}active {{end}}item" href="{{.RepoLink}}/settings/branches">
{{ctx.Locale.Tr "repo.settings.branches"}}
</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"}}
</a>
{{end}}
<a class="{{if .PageIsSettingsTags}}active {{end}}item" href="{{.RepoLink}}/settings/tags">
{{ctx.Locale.Tr "repo.settings.tags"}}
</a>

Loading…
Cancel
Save