diff options
author | Tim-Nicas Oelschläger <72873130+zokkis@users.noreply.github.com> | 2024-02-11 15:10:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-11 14:10:04 +0000 |
commit | 28db539d9c0fa0b7c9411724d8b4bf6f371651a0 (patch) | |
tree | e36aa743c6acb6fb0299f8c9e415eb8472eb581b | |
parent | 4fe37124e9ad5395b734662a7e8ab7b0025c38a3 (diff) | |
download | gitea-28db539d9c0fa0b7c9411724d8b4bf6f371651a0.tar.gz gitea-28db539d9c0fa0b7c9411724d8b4bf6f371651a0.zip |
Show more settings for empty repositories (#29130)
Shows more settings for empty repositories (Fixes #29060)
-rw-r--r-- | templates/repo/settings/navbar.tmpl | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/templates/repo/settings/navbar.tmpl b/templates/repo/settings/navbar.tmpl index 3bef0fa4c1..0b0ef0b6e8 100644 --- a/templates/repo/settings/navbar.tmpl +++ b/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> |