mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-11-24 10:46:10 +01:00
a81c6561e3
Backport #26218 by @kerwin612
Fixed two incorrect headers for setting the page navigation bar:
* User settings page, should not use the title "`org.settings`"
* Repo settings page, should not use the title "`org.settings`"
Co-authored-by: Kerwin Bryant <kerwin612@qq.com>
(cherry picked from commit 2122743093
)
51 lines
2.1 KiB
Handlebars
51 lines
2.1 KiB
Handlebars
<div class="four wide column">
|
|
<div class="ui fluid vertical menu">
|
|
<div class="header item">{{.locale.Tr "repo.settings"}}</div>
|
|
<a class="{{if .PageIsSettingsOptions}}active {{end}}item" href="{{.RepoLink}}/settings">
|
|
{{.locale.Tr "repo.settings.options"}}
|
|
</a>
|
|
<a class="{{if .PageIsSettingsCollaboration}}active {{end}}item" href="{{.RepoLink}}/settings/collaboration">
|
|
{{.locale.Tr "repo.settings.collaboration"}}
|
|
</a>
|
|
{{if not .Repository.IsEmpty}}
|
|
<a class="{{if .PageIsSettingsBranches}}active {{end}}item" href="{{.RepoLink}}/settings/branches">
|
|
{{.locale.Tr "repo.settings.branches"}}
|
|
</a>
|
|
{{end}}
|
|
<a class="{{if .PageIsSettingsTags}}active {{end}}item" href="{{.RepoLink}}/settings/tags">
|
|
{{.locale.Tr "repo.settings.tags"}}
|
|
</a>
|
|
{{if not DisableWebhooks}}
|
|
<a class="{{if .PageIsSettingsHooks}}active {{end}}item" href="{{.RepoLink}}/settings/hooks">
|
|
{{.locale.Tr "repo.settings.hooks"}}
|
|
</a>
|
|
{{end}}
|
|
{{if .SignedUser.CanEditGitHook}}
|
|
<a class="{{if .PageIsSettingsGitHooks}}active {{end}}item" href="{{.RepoLink}}/settings/hooks/git">
|
|
{{.locale.Tr "repo.settings.githooks"}}
|
|
</a>
|
|
{{end}}
|
|
<a class="{{if .PageIsSettingsKeys}}active {{end}}item" href="{{.RepoLink}}/settings/keys">
|
|
{{.locale.Tr "repo.settings.deploy_keys"}}
|
|
</a>
|
|
{{if .LFSStartServer}}
|
|
<a class="{{if .PageIsSettingsLFS}}active {{end}}item" href="{{.RepoLink}}/settings/lfs">
|
|
{{.locale.Tr "repo.settings.lfs"}}
|
|
</a>
|
|
{{end}}
|
|
{{if and .EnableActions (not .UnitActionsGlobalDisabled) (.Permission.CanRead $.UnitTypeActions)}}
|
|
<details class="item toggleable-item" {{if or .PageIsSharedSettingsRunners .PageIsSharedSettingsSecrets}}open{{end}}>
|
|
<summary>{{.locale.Tr "actions.actions"}}</summary>
|
|
<div class="menu">
|
|
<a class="{{if .PageIsSharedSettingsRunners}}active {{end}}item" href="{{.RepoLink}}/settings/actions/runners">
|
|
{{.locale.Tr "actions.runners"}}
|
|
</a>
|
|
<a class="{{if .PageIsSharedSettingsSecrets}}active {{end}}item" href="{{.RepoLink}}/settings/actions/secrets">
|
|
{{.locale.Tr "secrets.secrets"}}
|
|
</a>
|
|
</div>
|
|
</details>
|
|
{{end}}
|
|
</div>
|
|
</div>
|