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)
  • Loading branch information
zokkis authored and silverwind committed Feb 20, 2024
1 parent 9f97f3f commit 7b28458
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 @@ -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>
Expand Down

0 comments on commit 7b28458

Please sign in to comment.