diff --git a/web/templates/stats.html b/web/templates/stats.html index a0c289b..06ff92f 100644 --- a/web/templates/stats.html +++ b/web/templates/stats.html @@ -1,32 +1,79 @@ {% extends "base.html" %} -{% block title %}Statistics - Illustrations DB{% endblock %} +{% block body_class %}themed-bg{% endblock %} + {% block content %} -
-

Statistics

-
-
Total entries
{{ total }}
-
New in last 30 days
{{ last30 }}
-
New in last 365 days
{{ last365 }}
-
-
-

Trend (last 12 months)

-
-
Entries per month (by Date Added)
-
- {% for label, value, height in heights %} -
- {% endfor %} +
+

Statistics

+ +
+
+
+
Total Illustrations
+
{{ total }}
-
- {% for label, value in series %}{{ label }}{% endfor %} +
+
Added in last 30 days
+
{{ last30 }}
+
+
+
Added in last 365 days
+
{{ last365 }}
-
-

Top Subjects

-
- {% for item in top_subjects %} -
{{ item.name }}
{{ item.count }} entries
+
+ + +
+
Adds by Month (last 12)
+
+ {% for label, value, height in heights %} +
+ {% endfor %} +
+
+ {% for label, value in series %}{% if not forloop.last %}{{ label }} · {% else %}{{ label }}{% endif %}{% endfor %} +
+
+ + +
+
Top Subjects
+
+ {% for s in top_subjects %} + {{ s.name }} ({{ s.count }}) + {% empty %} + No subjects. {% endfor %}
-{% endblock %} + + +
+
Tools
+
+ Normalize scripture references (abbreviations, separators, repeat book names where needed). +
+
+ +
+ + +
+ + {% if user.is_authenticated and user.is_staff %} + +
+ {% csrf_token %} + +
+ {% endif %} +
+
+ Tip: you can pass ?limit=1000 on the preview URL to test a subset. +
+
+
+{% endblock %} \ No newline at end of file