Fix database counters display

This commit is contained in:
Gregoo 2025-01-30 23:25:42 +01:00
parent ca3d4d09d5
commit 069ba37e13

View File

@ -19,15 +19,15 @@
</p>
{% if database_counters %}
<h5 class="border-bottom">Records</h5>
<div class="d-flex justify-content-start">
<ul class="list-group me-2">
<div class="row">
<ul class="list-group col-4">
{% for counter in database_counters %}
<li class="list-group-item d-flex justify-content-between align-items-start {% if counter.legacy %}list-group-item-dark{% endif %}">
<span><i class="ri-{{ counter.icon }}"></i> {{ counter.name }}</span> <span class="badge {% if counter.legacy %}text-bg-light border{% else %}text-bg-primary{% endif %} rounded-pill ms-2">{{ counter.count }}</span>
</li>
{% if not (loop.index % 5) %}
</ul>
<ul class="list-group me-2">
<ul class="list-group col-4">
{% endif %}
{% endfor %}
</ul>