forked from mirror/gitea
Show more settings for empty repositories (#29130)
Shows more settings for empty repositories (Fixes #29060)
This commit is contained in:
parent
4fe37124e9
commit
28db539d9c
@ -12,10 +12,12 @@
|
|||||||
{{ctx.Locale.Tr "repo.settings.hooks"}}
|
{{ctx.Locale.Tr "repo.settings.hooks"}}
|
||||||
</a>
|
</a>
|
||||||
{{end}}
|
{{end}}
|
||||||
{{if and (.Repository.UnitEnabled $.Context $.UnitTypeCode) (not .Repository.IsEmpty)}}
|
{{if .Repository.UnitEnabled $.Context $.UnitTypeCode}}
|
||||||
<a class="{{if .PageIsSettingsBranches}}active {{end}}item" href="{{.RepoLink}}/settings/branches">
|
{{if not .Repository.IsEmpty}}
|
||||||
{{ctx.Locale.Tr "repo.settings.branches"}}
|
<a class="{{if .PageIsSettingsBranches}}active {{end}}item" href="{{.RepoLink}}/settings/branches">
|
||||||
</a>
|
{{ctx.Locale.Tr "repo.settings.branches"}}
|
||||||
|
</a>
|
||||||
|
{{end}}
|
||||||
<a class="{{if .PageIsSettingsTags}}active {{end}}item" href="{{.RepoLink}}/settings/tags">
|
<a class="{{if .PageIsSettingsTags}}active {{end}}item" href="{{.RepoLink}}/settings/tags">
|
||||||
{{ctx.Locale.Tr "repo.settings.tags"}}
|
{{ctx.Locale.Tr "repo.settings.tags"}}
|
||||||
</a>
|
</a>
|
||||||
|
Loading…
Reference in New Issue
Block a user