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 %}
+