From b75e2867dce5aeb7d2f33c6c07f8fca596d2ff1a Mon Sep 17 00:00:00 2001 From: "info@pi-farm.de" Date: Tue, 3 Mar 2026 23:43:07 +0000 Subject: [PATCH] templates/index.html aktualisiert --- templates/index.html | 35 ++++++++++++++++++++++++++++++----- 1 file changed, 30 insertions(+), 5 deletions(-) diff --git a/templates/index.html b/templates/index.html index e0f8985..3885b5c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -37,13 +37,33 @@

📍 Nodes

{% for node in nodes %} -
+
- +
-
{{ node.name }}
-
{{ node.ip }}
- + +
+
{{ node.name }}
+
+ {% if "Docker" in node.status or "Online" in node.status %} + + {% else %} + + {% endif %} +
+
+ +
{{ node.ip }}
+ +
+ + {{ node.status }} + +
+ +
{% endfor %}
@@ -120,6 +140,11 @@ const l = document.getElementById('install-log'); l.innerHTML += `
${ev.data}
`; l.parentElement.scrollTop = l.parentElement.scrollHeight; + + // Wenn der Log "fertig" oder "abgeschlossen" meldet, lade die Node-Liste nach 2 Sek neu + if (ev.data.includes("abgeschlossen") || ev.data.includes("fertig")) { + setTimeout(() => { location.reload(); }, 2000); + } }; const chatWs = new WebSocket(`ws://${location.host}/ws/chat`);