Skip to content

Commit

Permalink
Show more settings for empty repositories (go-gitea#29130)
Browse files Browse the repository at this point in the history
Shows more settings for empty repositories (Fixes go-gitea#29060)

(cherry picked from commit 28db539)
  • Loading branch information
zokkis authored and earl-warren committed Feb 14, 2024
1 parent f7491db commit b03af9e
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions templates/repo/settings/navbar.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,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>
Expand Down

0 comments on commit b03af9e

Please sign in to comment.