From 4ae255b67f09600969ade1fb7efb4455ed895ac1 Mon Sep 17 00:00:00 2001 From: Tim Eertmoed Date: Sun, 12 Oct 2025 17:00:36 +0200 Subject: [PATCH] srv/poe_manager/templates/index.html aktualisiert --- srv/poe_manager/templates/index.html | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/srv/poe_manager/templates/index.html b/srv/poe_manager/templates/index.html index f68abab..1de5c6f 100644 --- a/srv/poe_manager/templates/index.html +++ b/srv/poe_manager/templates/index.html @@ -10,29 +10,19 @@
{% for d in devices %}
-
-
{{ d[1] }}
+
+
{{ d[1] }}
{% if d[2] == 0 %} Deaktiviert {% else %} - {% if status[d[0]] == 'online' %} - Online - {% elif status[d[0]] == 'offline' %} - Offline
- {% if last_seen[d[0]] %} - {{ last_seen[d[0]][0] }}
- {{ last_seen[d[0]][1] }} - {% endif %} - {% else %} - Unbekannt - {% endif %} + {% if status[d[0]] %}{{ status[d[0]]|capitalize }}{% else %}Unbekannt{% endif %} {% endif %}
@@ -41,6 +31,7 @@ {% endfor %}
+