mirror of
https://github.com/go-gitea/gitea
synced 2024-12-23 21:25:58 +01:00
d55a0b7238
* Refactor `i18n` to `locale` - Currently we're using the `i18n` variable naming for the `locale` struct. This contains locale's specific information and cannot be used for general i18n purpose, therefore refactoring it to `locale` makes more sense. - Ref: https://github.com/go-gitea/gitea/pull/20096#discussion_r906699200 * Update routers/install/install.go
40 lines
1.7 KiB
Handlebars
40 lines
1.7 KiB
Handlebars
<div class="ui secondary pointing tabular top attached borderless menu stackable new-menu navbar">
|
|
<div class="new-menu-inner">
|
|
<a class="{{if .PageIsAdminDashboard}}active{{end}} item" href="{{AppSubUrl}}/admin">
|
|
{{.locale.Tr "admin.dashboard"}}
|
|
</a>
|
|
<a class="{{if .PageIsAdminUsers}}active{{end}} item" href="{{AppSubUrl}}/admin/users">
|
|
{{.locale.Tr "admin.users"}}
|
|
</a>
|
|
<a class="{{if .PageIsAdminOrganizations}}active{{end}} item" href="{{AppSubUrl}}/admin/orgs">
|
|
{{.locale.Tr "admin.organizations"}}
|
|
</a>
|
|
<a class="{{if .PageIsAdminRepositories}}active{{end}} item" href="{{AppSubUrl}}/admin/repos">
|
|
{{.locale.Tr "admin.repositories"}}
|
|
</a>
|
|
<a class="{{if .PageIsAdminPackages}}active{{end}} item" href="{{AppSubUrl}}/admin/packages">
|
|
{{.locale.Tr "packages.title"}}
|
|
</a>
|
|
{{if not DisableWebhooks}}
|
|
<a class="{{if or .PageIsAdminDefaultHooks .PageIsAdminSystemHooks}}active{{end}} item" href="{{AppSubUrl}}/admin/hooks">
|
|
{{.locale.Tr "admin.hooks"}}
|
|
</a>
|
|
{{end}}
|
|
<a class="{{if .PageIsAdminAuthentications}}active{{end}} item" href="{{AppSubUrl}}/admin/auths">
|
|
{{.locale.Tr "admin.authentication"}}
|
|
</a>
|
|
<a class="{{if .PageIsAdminEmails}}active{{end}} item" href="{{AppSubUrl}}/admin/emails">
|
|
{{.locale.Tr "admin.emails"}}
|
|
</a>
|
|
<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>
|
|
<a class="{{if .PageIsAdminMonitor}}active{{end}} item" href="{{AppSubUrl}}/admin/monitor">
|
|
{{.locale.Tr "admin.monitor"}}
|
|
</a>
|
|
</div>
|
|
</div>
|