templates/index.html aktualisiert

This commit is contained in:
2026-03-03 22:44:35 +00:00
parent 9ebafedcb5
commit 78b78f4a10

View File

@@ -37,6 +37,22 @@
</button> </button>
</div> </div>
{% for node in nodes %}
<div class="p-3 bg-gray-700 rounded-lg border border-gray-600 group relative">
<form action="/remove_node/{{ node.id }}" method="post" class="absolute top-2 right-2">
<button type="submit" class="text-gray-500 hover:text-red-500 text-xs font-bold"></button>
</form>
<div class="font-bold text-blue-400">{{ node.name }}</div>
<div class="text-xs text-gray-400">{{ node.ip }}</div>
<div class="text-[10px] uppercase mt-1 text-green-500 font-mono">{{ node.status }}</div>
<div class="flex gap-2 mt-2">
<button onclick="openTerminal('{{ node.ip }}')" class="flex-1 text-[10px] bg-gray-600 hover:bg-gray-500 py-1 rounded">Terminal</button>
</div>
</div>
{% endfor %}
<div class="flex-1 flex flex-col bg-gray-900"> <div class="flex-1 flex flex-col bg-gray-900">
<div id="chat-window" class="flex-1 p-6 overflow-y-auto space-y-4"> <div id="chat-window" class="flex-1 p-6 overflow-y-auto space-y-4">
<div class="bg-gray-800 p-3 rounded-lg w-fit border border-gray-700"> <div class="bg-gray-800 p-3 rounded-lg w-fit border border-gray-700">