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