From 1130c23b1e6bb1e4db71c41f5e4add903267830e Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Thu, 15 Dec 2022 12:26:17 -0700 Subject: Stator stats overhaul Removes the error table, adds a stats table and admin page. Fixes #166 --- templates/admin/stator.html | 13 +++++++++++++ templates/settings/_menu.html | 3 +++ 2 files changed, 16 insertions(+) create mode 100644 templates/admin/stator.html (limited to 'templates') 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 %} +
+ {{ model }} +

Pending: {{ stats.most_recent_queued }}

+

Processed today: {{ stats.most_recent_handled.1 }}

+
+ {% endfor %} +{% endblock %} diff --git a/templates/settings/_menu.html b/templates/settings/_menu.html index bcb404d..0a6062d 100644 --- a/templates/settings/_menu.html +++ b/templates/settings/_menu.html @@ -42,6 +42,9 @@ Tuning + + Stator + Django Admin -- cgit v1.2.3