mirror of
https://codeberg.org/forgejo/forgejo
synced 2024-12-02 14:56:10 +01:00
5fdac0d46a
`Secrets` options should be hidden if `Actions` feature is disabled. This fixes in release/v1.19. In main probably fixed in63a401ac40
(didn't check). Fixes:659055138b
Author-Change-Id: IB#1134011 Signed-off-by: Pawel Boguslawski <pawel.boguslawski@ib.pl> (cherry picked from commitc5dee8823c
)
47 lines
1.9 KiB
Handlebars
47 lines
1.9 KiB
Handlebars
<div class="ui secondary pointing tabular top attached borderless menu stackable new-menu navbar shadow-body">
|
|
<div class="new-menu-inner">
|
|
<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 .EnableActions}}
|
|
<a class="{{if .PageIsSettingsSecrets}}active {{end}}item" href="{{.RepoLink}}/settings/secrets">
|
|
{{.locale.Tr "secrets.secrets"}}
|
|
</a>
|
|
{{end}}
|
|
{{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)}}
|
|
<a class="{{if .PageIsSettingsRunners}}active {{end}}item" href="{{.RepoLink}}/settings/runners">
|
|
{{.locale.Tr "actions.runners"}}
|
|
</a>
|
|
{{end}}
|
|
</div>
|
|
</div>
|