mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-29 12:04:17 +00:00
2df7563f31
Mainly for MySQL/MSSQL. It is important for Gitea to use case-sensitive database charset collation. If the database is using a case-insensitive collation, Gitea will show startup error/warning messages, and show the errors/warnings on the admin panel's Self-Check page. Make `gitea doctor convert` work for MySQL to convert the collations of database & tables & columns. * Fix #28131 ## ⚠️ BREAKING ⚠️ It is not quite breaking, but it's highly recommended to convert the database&table&column to a consistent and case-sensitive collation.
103 lines
4.7 KiB
Handlebars
103 lines
4.7 KiB
Handlebars
<div class="flex-container-nav">
|
|
<div class="ui fluid vertical menu">
|
|
<div class="header item">{{ctx.Locale.Tr "admin.settings"}}</div>
|
|
<a class="{{if .PageIsAdminDashboard}}active {{end}}item" href="{{AppSubUrl}}/admin">
|
|
{{ctx.Locale.Tr "admin.dashboard"}}
|
|
</a>
|
|
<a class="{{if .PageIsAdminSelfCheck}}active {{end}}item" href="{{AppSubUrl}}/admin/self_check">
|
|
{{ctx.Locale.Tr "admin.self_check"}}
|
|
</a>
|
|
<details class="item toggleable-item" {{if or .PageIsAdminUsers .PageIsAdminEmails .PageIsAdminOrganizations .PageIsAdminAuthentications}}open{{end}}>
|
|
<summary>{{ctx.Locale.Tr "admin.identity_access"}}</summary>
|
|
<div class="menu">
|
|
<a class="{{if .PageIsAdminAuthentications}}active {{end}}item" href="{{AppSubUrl}}/admin/auths">
|
|
{{ctx.Locale.Tr "admin.authentication"}}
|
|
</a>
|
|
<a class="{{if .PageIsAdminOrganizations}}active {{end}}item" href="{{AppSubUrl}}/admin/orgs">
|
|
{{ctx.Locale.Tr "admin.organizations"}}
|
|
</a>
|
|
<a class="{{if .PageIsAdminUsers}}active {{end}}item" href="{{AppSubUrl}}/admin/users">
|
|
{{ctx.Locale.Tr "admin.users"}}
|
|
</a>
|
|
<a class="{{if .PageIsAdminEmails}}active {{end}}item" href="{{AppSubUrl}}/admin/emails">
|
|
{{ctx.Locale.Tr "admin.emails"}}
|
|
</a>
|
|
</div>
|
|
</details>
|
|
<details class="item toggleable-item" {{if or .PageIsAdminRepositories (and .EnablePackages .PageIsAdminPackages)}}open{{end}}>
|
|
<summary>{{ctx.Locale.Tr "admin.assets"}}</summary>
|
|
<div class="menu">
|
|
{{if .EnablePackages}}
|
|
<a class="{{if .PageIsAdminPackages}}active {{end}}item" href="{{AppSubUrl}}/admin/packages">
|
|
{{ctx.Locale.Tr "packages.title"}}
|
|
</a>
|
|
{{end}}
|
|
<a class="{{if .PageIsAdminRepositories}}active {{end}}item" href="{{AppSubUrl}}/admin/repos">
|
|
{{ctx.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>{{ctx.Locale.Tr "admin.integrations"}}</summary>
|
|
<div class="menu">
|
|
<a class="{{if .PageIsAdminApplications}}active {{end}}item" href="{{AppSubUrl}}/admin/applications">
|
|
{{ctx.Locale.Tr "settings.applications"}}
|
|
</a>
|
|
<a class="{{if or .PageIsAdminDefaultHooks .PageIsAdminSystemHooks}}active {{end}}item" href="{{AppSubUrl}}/admin/hooks">
|
|
{{ctx.Locale.Tr "admin.hooks"}}
|
|
</a>
|
|
</div>
|
|
</details>
|
|
{{else}}
|
|
{{if not DisableWebhooks}}
|
|
<a class="{{if or .PageIsAdminDefaultHooks .PageIsAdminSystemHooks}}active {{end}}item" href="{{AppSubUrl}}/admin/hooks">
|
|
{{ctx.Locale.Tr "admin.hooks"}}
|
|
</a>
|
|
{{end}}
|
|
{{if .EnableOAuth2}}
|
|
<a class="{{if .PageIsAdminApplications}}active {{end}}item" href="{{AppSubUrl}}/admin/applications">
|
|
{{ctx.Locale.Tr "settings.applications"}}
|
|
</a>
|
|
{{end}}
|
|
{{end}}
|
|
{{if .EnableActions}}
|
|
<details class="item toggleable-item" {{if or .PageIsSharedSettingsRunners .PageIsSharedSettingsVariables}}open{{end}}>
|
|
<summary>{{ctx.Locale.Tr "actions.actions"}}</summary>
|
|
<div class="menu">
|
|
<a class="{{if .PageIsSharedSettingsRunners}}active {{end}}item" href="{{AppSubUrl}}/admin/actions/runners">
|
|
{{ctx.Locale.Tr "actions.runners"}}
|
|
</a>
|
|
<a class="{{if .PageIsSharedSettingsVariables}}active {{end}}item" href="{{AppSubUrl}}/admin/actions/variables">
|
|
{{ctx.Locale.Tr "actions.variables"}}
|
|
</a>
|
|
</div>
|
|
</details>
|
|
{{end}}
|
|
<a class="{{if .PageIsAdminConfig}}active {{end}}item" href="{{AppSubUrl}}/admin/config">
|
|
{{ctx.Locale.Tr "admin.config"}}
|
|
</a>
|
|
<a class="{{if .PageIsAdminNotices}}active {{end}}item" href="{{AppSubUrl}}/admin/notices">
|
|
{{ctx.Locale.Tr "admin.notices"}}
|
|
</a>
|
|
<details class="item toggleable-item" {{if or .PageIsAdminMonitorStats .PageIsAdminMonitorCron .PageIsAdminMonitorQueue .PageIsAdminMonitorStacktrace}}open{{end}}>
|
|
<summary>{{ctx.Locale.Tr "admin.monitor"}}</summary>
|
|
<div class="menu">
|
|
<a class="{{if .PageIsAdminMonitorStats}}active {{end}}item" href="{{AppSubUrl}}/admin/monitor/stats">
|
|
{{ctx.Locale.Tr "admin.monitor.stats"}}
|
|
</a>
|
|
<a class="{{if .PageIsAdminMonitorCron}}active {{end}}item" href="{{AppSubUrl}}/admin/monitor/cron">
|
|
{{ctx.Locale.Tr "admin.monitor.cron"}}
|
|
</a>
|
|
<a class="{{if .PageIsAdminMonitorQueue}}active {{end}}item" href="{{AppSubUrl}}/admin/monitor/queue">
|
|
{{ctx.Locale.Tr "admin.monitor.queues"}}
|
|
</a>
|
|
<a class="{{if .PageIsAdminMonitorStacktrace}}active {{end}}item" href="{{AppSubUrl}}/admin/monitor/stacktrace">
|
|
{{ctx.Locale.Tr "admin.monitor.stacktrace"}}
|
|
</a>
|
|
</div>
|
|
</details>
|
|
</div>
|
|
</div>
|