srv/poe_manager/templates/index.html aktualisiert
This commit is contained in:
@@ -8,15 +8,10 @@
|
|||||||
</span>
|
</span>
|
||||||
</h2>
|
</h2>
|
||||||
<div class="row g-3">
|
<div class="row g-3">
|
||||||
{% set current_group = None %}
|
{% for letter, group in grouped_devices.items() %}
|
||||||
{% for d in devices %}
|
<h3>{{ letter }}</h3>
|
||||||
{% set group = d[1][0] %}
|
|
||||||
{% if group != current_group %}
|
|
||||||
{% if not loop.first %}</div>{% endif %} <!-- alte Reihe schließen -->
|
|
||||||
<h5 class="mt-3">{{ group }}</h5>
|
|
||||||
<div class="row g-3">
|
<div class="row g-3">
|
||||||
{% set current_group = group %}
|
{% for d in group %}
|
||||||
{% endif %}
|
|
||||||
<div class="col-6 col-md-4 col-lg-3 col-xl-2">
|
<div class="col-6 col-md-4 col-lg-3 col-xl-2">
|
||||||
<div class="card text-center p-2"
|
<div class="card text-center p-2"
|
||||||
{% if last_seen.get(d[0]) %}
|
{% if last_seen.get(d[0]) %}
|
||||||
@@ -40,7 +35,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% if loop.last %}</div>{% endif %} <!-- letzte Reihe schließen -->
|
{% endfor %}
|
||||||
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Reference in New Issue
Block a user