Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto-update the system status in admin dashboard #29163

Merged
merged 15 commits into from Feb 16, 2024
Merged
1 change: 1 addition & 0 deletions templates/admin/dashboard.tmpl
Expand Up @@ -75,6 +75,7 @@
<h4 class="ui top attached header">
{{ctx.Locale.Tr "admin.dashboard.system_status"}}
</h4>
{{/* TODO: make this work multi-server deployments, likely needs per-server stats in DB */}}
yardenshoham marked this conversation as resolved.
Show resolved Hide resolved
<div hx-get="{{$.Link}}/system_status" hx-swap="morph:innerHTML" hx-trigger="every 5s" hx-indicator=".divider" class="ui attached table segment">
yardenshoham marked this conversation as resolved.
Show resolved Hide resolved
{{template "admin/system_status" .}}
</div>
Expand Down