From 93753553431d93cbe301270bcf4a2358ddfcfdb1 Mon Sep 17 00:00:00 2001 From: Joshua Laymon Date: Sat, 16 Aug 2025 16:30:47 +0000 Subject: [PATCH] Update web/templates/stats.html --- web/templates/stats.html | 291 +++++++++++++++++++-------------------- 1 file changed, 145 insertions(+), 146 deletions(-) diff --git a/web/templates/stats.html b/web/templates/stats.html index 0e7e216..16fbd2b 100644 --- a/web/templates/stats.html +++ b/web/templates/stats.html @@ -5,7 +5,6 @@

Statistics

-
@@ -37,23 +36,23 @@
- -
-
Top Subjects
-
- {% for s in top_subjects %} - - {{ s.name }} ({{ s.count }}) - - {% empty %} - No subjects. - {% endfor %} -
+ +
+
Top Subjects
+
+ {% for s in top_subjects %} + + {{ s.name }} ({{ s.count }}) + + {% empty %} + No subjects. + {% endfor %}
+
@@ -65,157 +64,157 @@

Top 10 Books

    {% for book, cnt in top_books %} -
  1. - - {{ book }} - - — {{ cnt }} -
  2. +
  3. {{ book }} — {{ cnt }}
  4. {% empty %}
  5. No data yet.
  6. {% endfor %}
-

Top 10 Scriptures

-
    - {% for ref, cnt in top_refs %} -
  1. - - {{ ref }} - - — {{ cnt }} -
  2. - {% empty %} -
  3. No data yet.
  4. - {% endfor %} -
-
+

Top 10 Scriptures

+
    + {% for ref, cnt in top_refs %} +
  1. + + {{ ref }} + — {{ cnt }} +
  2. + {% empty %} +
  3. No data yet.
  4. + {% endfor %} +
+
- +
-
- - 🛠️ Maintenance Tools - +
+
Maintenance Tools
+ +
-
- -
-

Scripture Normalizer

-

- Normalize scripture references (abbreviations, separators, and repeat book names where needed). -

-
-
- - -
+ -
- Tip: add ?limit=1000 on the preview to test against a subset before applying globally. +
+ + +
+

Source Normalizer

+

+ Converts Watchtower/Awake!/Yearbook/KM references (e.g., “March 15, 2013 WT page 14”) into WOL short‑codes + like w13 3/15 p.14. Non‑JW sources are left unchanged. Use preview first; Apply will modify all + source fields. +

+
+
+ + +
+ + {% if user.is_authenticated and user.is_staff %} +
+ {% csrf_token %} + +
+ {% endif %} +
-
+
- + + {% endblock %} \ No newline at end of file