summaryrefslogtreecommitdiffstats
path: root/templates/admin
diff options
context:
space:
mode:
authorAndrew Godwin2022-12-15 12:26:17 -0700
committerAndrew Godwin2022-12-15 12:26:44 -0700
commit1130c23b1e6bb1e4db71c41f5e4add903267830e (patch)
tree855b93bb481d43a6aa1f4520df8405ad1a7ea3ff /templates/admin
parent5e912ecac5aa39f2d5dbecee792665d5743a77b9 (diff)
downloadtakahe-1130c23b1e6bb1e4db71c41f5e4add903267830e.tar.gz
takahe-1130c23b1e6bb1e4db71c41f5e4add903267830e.tar.bz2
takahe-1130c23b1e6bb1e4db71c41f5e4add903267830e.zip
Stator stats overhaul
Removes the error table, adds a stats table and admin page. Fixes #166
Diffstat (limited to 'templates/admin')
-rw-r--r--templates/admin/stator.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/templates/admin/stator.html b/templates/admin/stator.html
new file mode 100644
index 0000000..64bd432
--- /dev/null
+++ b/templates/admin/stator.html
@@ -0,0 +1,13 @@
+{% extends "settings/base.html" %}
+
+{% block subtitle %}Stator{% endblock %}
+
+{% block content %}
+ {% for model, stats in model_stats.items %}
+ <fieldset>
+ <legend>{{ model }}</legend>
+ <p><b>Pending:</b> {{ stats.most_recent_queued }}</p>
+ <p><b>Processed today:</b> {{ stats.most_recent_handled.1 }}</p>
+ </fieldset>
+ {% endfor %}
+{% endblock %}