diff options
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> |