From e68b9d00a6e05b3a941f63ffb696f91e554ac5ec Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 18 Oct 2024 20:33:49 +0200 Subject: Adding upstream version 9.0.3. Signed-off-by: Daniel Baumann --- templates/admin/dashboard.tmpl | 84 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 84 insertions(+) create mode 100644 templates/admin/dashboard.tmpl (limited to 'templates/admin/dashboard.tmpl') diff --git a/templates/admin/dashboard.tmpl b/templates/admin/dashboard.tmpl new file mode 100644 index 0000000..b61de66 --- /dev/null +++ b/templates/admin/dashboard.tmpl @@ -0,0 +1,84 @@ +{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin dashboard")}} +
+ {{if .NeedUpdate}} +
+

{{ctx.Locale.Tr "admin.dashboard.new_version_hint" .RemoteVersion AppVer "https://forgejo.org/news"}}

+
+ {{end}} +

+ {{ctx.Locale.Tr "admin.dashboard.operations"}} +

+
+
+ {{.CsrfTokenHtml}} + + + + + + + + + + + + + + + + + + + {{if and (not .SSH.Disabled) (not .SSH.StartBuiltinServer)}} + + + + + + + + + {{end}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
{{ctx.Locale.Tr "admin.dashboard.delete_inactive_accounts"}}
{{ctx.Locale.Tr "admin.dashboard.delete_repo_archives"}}
{{ctx.Locale.Tr "admin.dashboard.delete_missing_repos"}}
{{ctx.Locale.Tr "admin.dashboard.git_gc_repos"}}
{{ctx.Locale.Tr "admin.dashboard.resync_all_sshkeys"}}
{{ctx.Locale.Tr "admin.dashboard.resync_all_sshprincipals"}}
{{ctx.Locale.Tr "admin.dashboard.resync_all_hooks"}}
{{ctx.Locale.Tr "admin.dashboard.reinit_missing_repos"}}
{{ctx.Locale.Tr "admin.dashboard.sync_external_users"}}
{{ctx.Locale.Tr "admin.dashboard.repo_health_check"}}
{{ctx.Locale.Tr "admin.dashboard.delete_generated_repository_avatars"}}
{{ctx.Locale.Tr "admin.dashboard.sync_repo_branches"}}
{{ctx.Locale.Tr "admin.dashboard.sync_repo_tags"}}
+
+
+ +

+ {{ctx.Locale.Tr "admin.dashboard.system_status"}} +

+ {{/* TODO: make these stats work in multi-server deployments, likely needs per-server stats in DB */}} +
+
+ {{template "admin/system_status" .}} +
+
+{{template "admin/layout_footer" .}} -- cgit v1.2.3