aboutsummaryrefslogtreecommitdiffstats
path: root/templates/admin/navbar.tmpl
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2024-02-24 21:12:17 +0800
committerGitHub <noreply@github.com>2024-02-24 13:12:17 +0000
commit29a26d9d8c573c9fb7e79a66ac3d578e8b20dcae (patch)
tree2d51372c6d14b0f1c96c35d1a2cf4ff8f6fb050b /templates/admin/navbar.tmpl
parentc42083a33950be6ee9f822c6d0de3c3a79d1f51b (diff)
downloadgitea-29a26d9d8c573c9fb7e79a66ac3d578e8b20dcae.tar.gz
gitea-29a26d9d8c573c9fb7e79a66ac3d578e8b20dcae.zip
Customizable "Open with" applications for repository clone (#29320)
Users could customize the "clone" menu with their own application URLs on the admin panel. Replace #22378 Close #21121 Close #22149
Diffstat (limited to 'templates/admin/navbar.tmpl')
-rw-r--r--templates/admin/navbar.tmpl14
1 files changed, 11 insertions, 3 deletions
diff --git a/templates/admin/navbar.tmpl b/templates/admin/navbar.tmpl
index fa79f0f759..d01a6ab964 100644
--- a/templates/admin/navbar.tmpl
+++ b/templates/admin/navbar.tmpl
@@ -75,9 +75,17 @@
</div>
</details>
{{end}}
- <a class="{{if .PageIsAdminConfig}}active {{end}}item" href="{{AppSubUrl}}/admin/config">
- {{ctx.Locale.Tr "admin.config"}}
- </a>
+ <details class="item toggleable-item" {{if or .PageIsAdminConfig}}open{{end}}>
+ <summary>{{ctx.Locale.Tr "admin.config"}}</summary>
+ <div class="menu">
+ <a class="{{if .PageIsAdminConfigSummary}}active {{end}}item" href="{{AppSubUrl}}/admin/config">
+ {{ctx.Locale.Tr "admin.config_summary"}}
+ </a>
+ <a class="{{if .PageIsAdminConfigSettings}}active {{end}}item" href="{{AppSubUrl}}/admin/config/settings">
+ {{ctx.Locale.Tr "admin.config_settings"}}
+ </a>
+ </div>
+ </details>
<a class="{{if .PageIsAdminNotices}}active {{end}}item" href="{{AppSubUrl}}/admin/notices">
{{ctx.Locale.Tr "admin.notices"}}
</a>