{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin dashboard")}}
{{if .NeedUpdate}}

{{ctx.Locale.Tr "admin.dashboard.new_version_hint" .RemoteVersion AppVer}}

{{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" .}}