42 lines
1.6 KiB
HTML
42 lines
1.6 KiB
HTML
<!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('index') }}">judas</a></h1>
|
|
<p><a class="button" href="{{ url_for('logout') }}">Logout</a></p>
|
|
</header>
|
|
<main>
|
|
<h2 class="center">Select a PC to Control</h2>
|
|
<p class="center">Choose a PC from the list below to view details or send commands.</p>
|
|
<table class="center-table select-table">
|
|
<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 class='{% if pc.status == "online" %}green-bg{% elif pc.status == "offline" %}red-bg{% else %}yellow-bg{% endif %}'>{{ 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> |