Update web/templates/stats.html

This commit is contained in:
Joshua Laymon 2025-08-14 12:52:35 +00:00
parent a91198c7e6
commit d189670973

View File

@ -48,6 +48,35 @@
</div>
</div>
<!-- Scripture usage -->
<div class="card" style="padding:16px; margin-bottom:16px;">
<h3 style="margin:0 0 10px;">Scripture Usage</h3>
<div class="chip" style="margin-bottom:10px;"><strong>Avg. refs per scripture-bearing entry:</strong>&nbsp;{{ avg_refs_per_entry }}</div>
<div style="display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px;">
<div>
<h4 style="margin:0 0 6px;">Top 10 Books</h4>
<ol class="small" style="margin:0; padding-left:18px;">
{% for book, cnt in top_books %}
<li><strong>{{ book }}</strong> — {{ cnt }}</li>
{% empty %}
<li class="muted">No data yet.</li>
{% endfor %}
</ol>
</div>
<div>
<h4 style="margin:0 0 6px;">Top 10 Scriptures</h4>
<ol class="small" style="margin:0; padding-left:18px;">
{% for ref, cnt in top_refs %}
<li><strong>{{ ref }}</strong> — {{ cnt }}</li>
{% empty %}
<li class="muted">No data yet.</li>
{% endfor %}
</ol>
</div>
</div>
</div>
<!-- Tools: Scripture normalizer -->
<div class="card" style="padding:16px; margin-bottom:24px;">
<div class="meta-label">Tools</div>