mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-25 09:47:30 +00:00
9665622378
User settings page and admin settings page are too similar. I thinlk this will be better of using `User Settings` and `Admin Settings` as the navbar's title. Before: ![image](https://github.com/go-gitea/gitea/assets/18380374/68db06f3-918b-41bc-b4d3-522b1057eb57) ![image](https://github.com/go-gitea/gitea/assets/18380374/24f53d91-54e1-410c-ad9b-438bb2c8069f) After: ![image](https://github.com/go-gitea/gitea/assets/18380374/6600a872-d630-4ea6-a58f-d9ded7d38067) ![image](https://github.com/go-gitea/gitea/assets/18380374/501cde5d-9868-4cba-829d-ff8bafce695d)
97 lines
4.3 KiB
Handlebars
97 lines
4.3 KiB
Handlebars
<div class="flex-container-nav">
|
|
<div class="ui fluid vertical menu">
|
|
<div class="header item">{{.locale.Tr "admin.settings"}}</div>
|
|
<a class="{{if .PageIsAdminDashboard}}active {{end}}item" href="{{AppSubUrl}}/admin">
|
|
{{.locale.Tr "admin.dashboard"}}
|
|
</a>
|
|
<details class="item toggleable-item" {{if or .PageIsAdminUsers .PageIsAdminEmails .PageIsAdminOrganizations .PageIsAdminAuthentications}}open{{end}}>
|
|
<summary>{{.locale.Tr "admin.identity_access"}}</summary>
|
|
<div class="menu">
|
|
<a class="{{if .PageIsAdminAuthentications}}active {{end}}item" href="{{AppSubUrl}}/admin/auths">
|
|
{{.locale.Tr "admin.authentication"}}
|
|
</a>
|
|
<a class="{{if .PageIsAdminOrganizations}}active {{end}}item" href="{{AppSubUrl}}/admin/orgs">
|
|
{{.locale.Tr "admin.organizations"}}
|
|
</a>
|
|
<a class="{{if .PageIsAdminUsers}}active {{end}}item" href="{{AppSubUrl}}/admin/users">
|
|
{{.locale.Tr "admin.users"}}
|
|
</a>
|
|
<a class="{{if .PageIsAdminEmails}}active {{end}}item" href="{{AppSubUrl}}/admin/emails">
|
|
{{.locale.Tr "admin.emails"}}
|
|
</a>
|
|
</div>
|
|
</details>
|
|
<details class="item toggleable-item" {{if or .PageIsAdminRepositories (and .EnablePackages .PageIsAdminPackages)}}open{{end}}>
|
|
<summary>{{.locale.Tr "admin.assets"}}</summary>
|
|
<div class="menu">
|
|
{{if .EnablePackages}}
|
|
<a class="{{if .PageIsAdminPackages}}active {{end}}item" href="{{AppSubUrl}}/admin/packages">
|
|
{{.locale.Tr "packages.title"}}
|
|
</a>
|
|
{{end}}
|
|
<a class="{{if .PageIsAdminRepositories}}active {{end}}item" href="{{AppSubUrl}}/admin/repos">
|
|
{{.locale.Tr "admin.repositories"}}
|
|
</a>
|
|
</div>
|
|
</details>
|
|
<!-- Webhooks and OAuth can be both disabled here, so add this if statement to display different ui -->
|
|
{{if and (not DisableWebhooks) .EnableOAuth2}}
|
|
<details class="item toggleable-item" {{if or .PageIsAdminDefaultHooks .PageIsAdminSystemHooks .PageIsAdminApplications}}open{{end}}>
|
|
<summary>{{.locale.Tr "admin.integrations"}}</summary>
|
|
<div class="menu">
|
|
<a class="{{if .PageIsAdminApplications}}active {{end}}item" href="{{AppSubUrl}}/admin/applications">
|
|
{{.locale.Tr "settings.applications"}}
|
|
</a>
|
|
<a class="{{if or .PageIsAdminDefaultHooks .PageIsAdminSystemHooks}}active {{end}}item" href="{{AppSubUrl}}/admin/hooks">
|
|
{{.locale.Tr "admin.hooks"}}
|
|
</a>
|
|
</div>
|
|
</details>
|
|
{{else}}
|
|
{{if not DisableWebhooks}}
|
|
<a class="{{if or .PageIsAdminDefaultHooks .PageIsAdminSystemHooks}}active {{end}}item" href="{{AppSubUrl}}/admin/hooks">
|
|
{{.locale.Tr "admin.hooks"}}
|
|
</a>
|
|
{{end}}
|
|
{{if .EnableOAuth2}}
|
|
<a class="{{if .PageIsAdminApplications}}active {{end}}item" href="{{AppSubUrl}}/admin/applications">
|
|
{{.locale.Tr "settings.applications"}}
|
|
</a>
|
|
{{end}}
|
|
{{end}}
|
|
{{if .EnableActions}}
|
|
<details class="item toggleable-item" {{if .PageIsSharedSettingsRunners}}open{{end}}>
|
|
<summary>{{.locale.Tr "actions.actions"}}</summary>
|
|
<div class="menu">
|
|
<a class="{{if .PageIsSharedSettingsRunners}}active {{end}}item" href="{{AppSubUrl}}/admin/actions/runners">
|
|
{{.locale.Tr "actions.runners"}}
|
|
</a>
|
|
</div>
|
|
</details>
|
|
{{end}}
|
|
<a class="{{if .PageIsAdminConfig}}active {{end}}item" href="{{AppSubUrl}}/admin/config">
|
|
{{.locale.Tr "admin.config"}}
|
|
</a>
|
|
<a class="{{if .PageIsAdminNotices}}active {{end}}item" href="{{AppSubUrl}}/admin/notices">
|
|
{{.locale.Tr "admin.notices"}}
|
|
</a>
|
|
<details class="item toggleable-item" {{if or .PageIsAdminMonitorStats .PageIsAdminMonitorCron .PageIsAdminMonitorQueue .PageIsAdminMonitorStacktrace}}open{{end}}>
|
|
<summary>{{.locale.Tr "admin.monitor"}}</summary>
|
|
<div class="menu">
|
|
<a class="{{if .PageIsAdminMonitorStats}}active {{end}}item" href="{{AppSubUrl}}/admin/monitor/stats">
|
|
{{.locale.Tr "admin.monitor.stats"}}
|
|
</a>
|
|
<a class="{{if .PageIsAdminMonitorCron}}active {{end}}item" href="{{AppSubUrl}}/admin/monitor/cron">
|
|
{{.locale.Tr "admin.monitor.cron"}}
|
|
</a>
|
|
<a class="{{if .PageIsAdminMonitorQueue}}active {{end}}item" href="{{AppSubUrl}}/admin/monitor/queue">
|
|
{{.locale.Tr "admin.monitor.queues"}}
|
|
</a>
|
|
<a class="{{if .PageIsAdminMonitorStacktrace}}active {{end}}item" href="{{AppSubUrl}}/admin/monitor/stacktrace">
|
|
{{.locale.Tr "admin.monitor.stacktrace"}}
|
|
</a>
|
|
</div>
|
|
</details>
|
|
</div>
|
|
</div>
|