mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-09 11:21:19 +01:00
05d0b7ca91
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`"
55 lines
2.5 KiB
Handlebars
55 lines
2.5 KiB
Handlebars
<div class="four wide column">
|
|
<div class="ui fluid vertical menu">
|
|
<div class="header item">{{.locale.Tr "settings"}}</div>
|
|
<a class="{{if .PageIsSettingsProfile}}active {{end}}item" href="{{AppSubUrl}}/user/settings">
|
|
{{.locale.Tr "settings.profile"}}
|
|
</a>
|
|
<a class="{{if .PageIsSettingsAccount}}active {{end}}item" href="{{AppSubUrl}}/user/settings/account">
|
|
{{.locale.Tr "settings.account"}}
|
|
</a>
|
|
<a class="{{if .PageIsSettingsAppearance}}active {{end}}item" href="{{AppSubUrl}}/user/settings/appearance">
|
|
{{.locale.Tr "settings.appearance"}}
|
|
</a>
|
|
<a class="{{if .PageIsSettingsSecurity}}active {{end}}item" href="{{AppSubUrl}}/user/settings/security">
|
|
{{.locale.Tr "settings.security"}}
|
|
</a>
|
|
<a class="{{if .PageIsSettingsApplications}}active {{end}}item" href="{{AppSubUrl}}/user/settings/applications">
|
|
{{.locale.Tr "settings.applications"}}
|
|
</a>
|
|
<a class="{{if .PageIsSettingsKeys}}active {{end}}item" href="{{AppSubUrl}}/user/settings/keys">
|
|
{{.locale.Tr "settings.ssh_gpg_keys"}}
|
|
</a>
|
|
{{if .EnableActions}}
|
|
<details class="item toggleable-item" {{if or .PageIsSharedSettingsRunners .PageIsSharedSettingsSecrets .PageIsSharedSettingsVariables}}open{{end}}>
|
|
<summary>{{.locale.Tr "actions.actions"}}</summary>
|
|
<div class="menu">
|
|
<a class="{{if .PageIsSharedSettingsRunners}}active {{end}}item" href="{{AppSubUrl}}/user/settings/actions/runners">
|
|
{{.locale.Tr "actions.runners"}}
|
|
</a>
|
|
<a class="{{if .PageIsSharedSettingsSecrets}}active {{end}}item" href="{{AppSubUrl}}/user/settings/actions/secrets">
|
|
{{.locale.Tr "secrets.secrets"}}
|
|
</a>
|
|
<a class="{{if .PageIsSharedSettingsVariables}}active {{end}}item" href="{{AppSubUrl}}/user/settings/actions/variables">
|
|
{{.locale.Tr "actions.variables"}}
|
|
</a>
|
|
</div>
|
|
</details>
|
|
{{end}}
|
|
{{if .EnablePackages}}
|
|
<a class="{{if .PageIsSettingsPackages}}active {{end}}item" href="{{AppSubUrl}}/user/settings/packages">
|
|
{{.locale.Tr "packages.title"}}
|
|
</a>
|
|
{{end}}
|
|
{{if not DisableWebhooks}}
|
|
<a class="{{if .PageIsSettingsHooks}}active {{end}}item" href="{{AppSubUrl}}/user/settings/hooks">
|
|
{{.locale.Tr "repo.settings.hooks"}}
|
|
</a>
|
|
{{end}}
|
|
<a class="{{if .PageIsSettingsOrganization}}active {{end}}item" href="{{AppSubUrl}}/user/settings/organization">
|
|
{{.locale.Tr "settings.organization"}}
|
|
</a>
|
|
<a class="{{if .PageIsSettingsRepos}}active {{end}}item" href="{{AppSubUrl}}/user/settings/repos">
|
|
{{.locale.Tr "settings.repos"}}
|
|
</a>
|
|
</div>
|
|
</div>
|