-
-{{template "base/footer" .}}
+{{template "admin/layout_footer" .}}
diff --git a/templates/admin/applications/oauth2_edit.tmpl b/templates/admin/applications/oauth2_edit.tmpl
index 20231c4b1..668bfe063 100644
--- a/templates/admin/applications/oauth2_edit.tmpl
+++ b/templates/admin/applications/oauth2_edit.tmpl
@@ -1,7 +1,6 @@
-{{template "base/head" .}}
-
- {{template "base/alert" .}}
-
+{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin config")}}
+ - {{.locale.Tr "settings.applications"}} -
- {{template "user/settings/applications_oauth2_list" .}} -
+
-+ {{.locale.Tr "settings.applications"}} +
+ {{template "user/settings/applications_oauth2_list" .}}
- {{template "admin/navbar" .}}
+{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin config")}}
+
+{{template "admin/layout_footer" .}}
diff --git a/templates/admin/auth/edit.tmpl b/templates/admin/auth/edit.tmpl
index c3ff228ac..c39725699 100644
--- a/templates/admin/auth/edit.tmpl
+++ b/templates/admin/auth/edit.tmpl
@@ -1,8 +1,5 @@
-{{template "base/head" .}}
-
- {{template "user/settings/applications_oauth2_edit_form" .}}
-
-{{template "base/footer" .}}
+ {{template "user/settings/applications_oauth2_edit_form" .}}
+
- {{template "admin/navbar" .}}
-
- {{template "base/alert" .}}
+{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin edit authentication")}}
+
-{{.locale.Tr "admin.auths.edit"}}
@@ -438,7 +435,6 @@
@@ -450,4 +446,5 @@
{{template "base/modal_actions_confirm" .}}
- {{template "admin/navbar" .}}
-
-{{template "base/footer" .}}
+{{template "admin/layout_footer" .}}
diff --git a/templates/admin/config.tmpl b/templates/admin/config.tmpl
index 14281c70c..136ad38f1 100644
--- a/templates/admin/config.tmpl
+++ b/templates/admin/config.tmpl
@@ -1,8 +1,5 @@
-{{template "base/head" .}}
-
- {{template "base/alert" .}}
+{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin authentication")}}
+
{{.locale.Tr "admin.auths.auth_manage_panel"}} ({{.locale.Tr "admin.total" .Total}})
-
-{{template "base/footer" .}}
+{{template "admin/layout_footer" .}}
diff --git a/templates/admin/auth/new.tmpl b/templates/admin/auth/new.tmpl
index b7715cb5f..5d9a9083c 100644
--- a/templates/admin/auth/new.tmpl
+++ b/templates/admin/auth/new.tmpl
@@ -1,8 +1,5 @@
-{{template "base/head" .}}
-
{{.locale.Tr "admin.auths.auth_manage_panel"}} ({{.locale.Tr "admin.total" .Total}})
@@ -38,5 +35,4 @@
- {{template "admin/navbar" .}}
-
-
- {{template "base/alert" .}}
+{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin new authentication")}}
+
{{.locale.Tr "admin.auths.new"}}
@@ -122,5 +119,4 @@
- {{template "admin/navbar" .}}
-
-{{template "base/footer" .}}
+{{template "admin/layout_footer" .}}
diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl
index fc1b1f438..93fcae4ca 100644
--- a/templates/admin/dashboard.tmpl
+++ b/templates/admin/dashboard.tmpl
@@ -1,8 +1,5 @@
-{{template "base/head" .}}
-
- {{template "base/alert" .}}
+{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin config")}}
+
-{{.locale.Tr "admin.config.server_config"}}
@@ -426,5 +423,4 @@
- {{template "admin/navbar" .}}
-
- {{template "base/alert" .}}
+{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin dashboard")}}
+
-{{template "base/footer" .}}
+{{template "admin/layout_footer" .}}
diff --git a/templates/admin/emails/list.tmpl b/templates/admin/emails/list.tmpl
index 61af57109..05c6aa66b 100644
--- a/templates/admin/emails/list.tmpl
+++ b/templates/admin/emails/list.tmpl
@@ -1,8 +1,5 @@
-{{template "base/head" .}}
-
{{if .NeedUpdate}}
-
- {{template "admin/navbar" .}}
-
-{{template "base/footer" .}}
+{{template "admin/layout_footer" .}}
diff --git a/templates/admin/hook_new.tmpl b/templates/admin/hook_new.tmpl
index 0c018ff29..1abdd4c81 100644
--- a/templates/admin/hook_new.tmpl
+++ b/templates/admin/hook_new.tmpl
@@ -1,8 +1,5 @@
-{{template "base/head" .}}
-
- {{template "base/alert" .}}
+{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin user")}}
+
-{{.locale.Tr "admin.emails.email_manage_panel"}} ({{.locale.Tr "admin.total" .Total}})
@@ -101,5 +98,4 @@
- {{template "admin/navbar" .}}
-
- {{template "base/alert" .}}
+{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin settings new webhook")}}
+
-
-{{template "base/footer" .}}
+{{template "admin/layout_footer" .}}
diff --git a/templates/admin/hooks.tmpl b/templates/admin/hooks.tmpl
index 26f92c706..c77d27dbd 100644
--- a/templates/admin/hooks.tmpl
+++ b/templates/admin/hooks.tmpl
@@ -1,13 +1,9 @@
-{{template "base/head" .}}
-{{if .PageIsAdminDefaultHooksNew}} {{.locale.Tr "admin.defaulthooks.add_webhook"}} @@ -55,5 +52,4 @@ {{template "repo/settings/webhook/history" .}}
- {{template "admin/navbar" .}}
-
- {{template "base/alert" .}}
+{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin hooks")}}
+
-{{template "base/footer" .}}
+{{template "admin/layout_footer" .}}
diff --git a/templates/admin/layout_footer.tmpl b/templates/admin/layout_footer.tmpl
new file mode 100644
index 000000000..8d6e564d5
--- /dev/null
+++ b/templates/admin/layout_footer.tmpl
@@ -0,0 +1,11 @@
+{{if false}}{{/* to make html structure "likely" complete to prevent IDE warnings */}}
+
{{template "repo/settings/webhook/base_list" .SystemWebhooks}}
{{template "repo/settings/webhook/base_list" .DefaultWebhooks}}
{{template "repo/settings/webhook/delete_modal" .}}
-
+
+{{template "base/footer" .}}
diff --git a/templates/admin/layout_head.tmpl b/templates/admin/layout_head.tmpl
new file mode 100644
index 000000000..6d84f8f35
--- /dev/null
+++ b/templates/admin/layout_head.tmpl
@@ -0,0 +1,13 @@
+{{template "base/head" .ctxData}}
+
+
+
+ {{/* block: admin-setting-content */}}
+{{end}}
+
+
+
+
+{{end}}
diff --git a/templates/admin/monitor.tmpl b/templates/admin/monitor.tmpl
index 4d66d3bfb..4b9e51503 100644
--- a/templates/admin/monitor.tmpl
+++ b/templates/admin/monitor.tmpl
@@ -1,8 +1,5 @@
-{{template "base/head" .}}
-
+ {{template "admin/navbar" .ctxData}}
+
+
+ {{template "base/alert" .ctxData}}
+ {{/* block: admin-setting-content */}}
+
+{{if false}}{{/* to make html structure "likely" complete to prevent IDE warnings */}}
+
+
- {{template "admin/navbar" .}}
-
- {{template "base/alert" .}}
+{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin monitor")}}
+
{{template "admin/cron" .}}
{{.locale.Tr "admin.monitor.queues"}}
@@ -26,7 +23,7 @@
{{.locale.Tr "admin.monitor.queues"}}
@@ -26,7 +23,7 @@
{{.Type}}
{{.ExemplarType}}
{{$sum := .NumberOfWorkers}}{{if lt $sum 0}}-{{else}}{{$sum}}{{end}}
- {{$sum := .NumberInQueue}}{{if lt $sum 0}}-{{else}}{{$sum}}{{end}}
+ {{$sum = .NumberInQueue}}{{if lt $sum 0}}-{{else}}{{$sum}}{{end}}
{{if lt $sum 0}}{{$.locale.Tr "admin.monitor.queue.review"}}{{else}}{{$.locale.Tr "admin.monitor.queue.review_add"}}{{end}}
{{end}}
@@ -36,7 +33,7 @@
{{template "admin/process" .}}
-
+
{{.locale.Tr "admin.monitor.process.cancel"}}
@@ -47,4 +44,5 @@
{{template "base/modal_actions_confirm" .}}
-{{template "base/footer" .}}
+
+{{template "admin/layout_footer" .}}
diff --git a/templates/admin/navbar.tmpl b/templates/admin/navbar.tmpl
index 97ee91716..e8eb54e58 100644
--- a/templates/admin/navbar.tmpl
+++ b/templates/admin/navbar.tmpl
@@ -1,5 +1,6 @@
-
{{.locale.Tr "admin.monitor.process.cancel"}}
@@ -47,4 +44,5 @@
{{template "base/modal_actions_confirm" .}}