feat(panel.html): add panel page template

This commit is contained in:
2025-06-15 22:39:30 +02:00
parent b125a3008f
commit 6ba91e5ba6

View File

@@ -0,0 +1,41 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>judas panel</title>
<link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
<div id="wrapper">
<header>
<h1><a href="{{ url_for('panel') }}">judas panel</a></h1>
<p>Welcome, {{ username }}! <a href="{{ url_for('logout') }}">Logout</a></p>
</header>
<main>
<table border="1">
<thead>
<tr>
<th>PC ID</th>
<th>Status</th>
<th>Last Seen</th>
</tr>
</thead>
<tbody>
{% for pc in pcs.values() %}
<tr>
<td><a href="{{ url_for('details', pc_id=pc.id) }}">{{ pc.id }}</a></td>
<td>{{ pc.status if pc.status else 'Unknown' }}</td>
<td>{{ pc.last_seen if pc.last_seen else 'Never' }}</td>
</tr>
{% else %}
<tr>
<td colspan="3">No PCs found.</td>
</tr>
{% endfor %}
</tbody>
</table>
</main>
</div>
</body>
</html>