Take a more generic approach at counting all the tables in the database file

This commit is contained in:
2025-01-24 10:03:53 +01:00
parent 5ea9240f34
commit e2bcd61ace
4 changed files with 53 additions and 18 deletions
+4 -4
View File
@@ -22,13 +22,13 @@
<div class="d-flex justify-content-start">
<ul class="list-group me-2">
{% for counter in database_counters %}
{% if not (loop.index % 5) %}
</ul>
<ul class="list-group">
{% endif %}
<li class="list-group-item d-flex justify-content-between align-items-start">
<span><i class="ri-{{ counter.icon }}"></i> {{ counter.name }}</span> <span class="badge text-bg-primary rounded-pill ms-2">{{ counter.count }}</span>
</li>
{% if not (loop.index % 5) %}
</ul>
<ul class="list-group me-2">
{% endif %}
{% endfor %}
</ul>
</div>