diff options
author | Andrew Godwin | 2022-12-15 12:26:17 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-12-15 12:26:44 -0700 |
commit | 1130c23b1e6bb1e4db71c41f5e4add903267830e (patch) | |
tree | 855b93bb481d43a6aa1f4520df8405ad1a7ea3ff /templates | |
parent | 5e912ecac5aa39f2d5dbecee792665d5743a77b9 (diff) | |
download | takahe-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')
-rw-r--r-- | templates/admin/stator.html | 13 | ||||
-rw-r--r-- | templates/settings/_menu.html | 3 |
2 files changed, 16 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 %} 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 @@ <a href="{% url "admin_tuning" %}" {% if section == "tuning" %}class="selected"{% endif %} title="Tuning"> <i class="fa-solid fa-wrench"></i> Tuning </a> + <a href="{% url "admin_stator" %}" {% if section == "stator" %}class="selected"{% endif %} title="Stator"> + <i class="fa-solid fa-clock-rotate-left"></i> Stator + </a> <a href="/djadmin" title=""> <i class="fa-solid fa-gear"></i> Django Admin </a> |