v0.1.1 update

This commit is contained in:
serversdwn
2025-12-02 06:36:13 +00:00
parent 938e950dd6
commit 90ecada35f
17 changed files with 867 additions and 221 deletions

View File

@@ -0,0 +1,25 @@
<table class="fleet-table">
<thead>
<tr>
<th>ID</th>
<th>Status</th>
<th>Age</th>
<th>Last Seen</th>
<th>File</th>
<th>Note</th>
</tr>
</thead>
<tbody>
{% for uid, u in units.items() %}
<tr>
<td>{{ uid }}</td>
<td>{{ u.status }}</td>
<td>{{ u.age }}</td>
<td>{{ u.last }}</td>
<td>{{ u.fname }}</td>
<td>{{ u.note }}</td>
</tr>
{% endfor %}
</tbody>
</table>

View File

@@ -0,0 +1,25 @@
<table class="fleet-table">
<thead>
<tr>
<th>ID</th>
<th>Status</th>
<th>Age</th>
<th>Last Seen</th>
<th>File</th>
<th>Note</th>
</tr>
</thead>
<tbody>
{% for uid, u in units.items() %}
<tr>
<td>{{ uid }}</td>
<td>{{ u.status }}</td>
<td>{{ u.age }}</td>
<td>{{ u.last }}</td>
<td>{{ u.fname }}</td>
<td>{{ u.note }}</td>
</tr>
{% endfor %}
</tbody>
</table>

View File

@@ -0,0 +1,23 @@
{% for id, unit in units.items() %}
<a href="/unit/{{ id }}"
class="flex items-center justify-between p-3 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-700 border border-gray-200 dark:border-gray-700">
<div class="flex items-center space-x-3">
<span class="w-3 h-3 rounded-full
{% if unit.status == 'OK' %} bg-green-500
{% elif unit.status == 'Pending' %} bg-yellow-500
{% else %} bg-red-500 {% endif %}">
</span>
<span class="w-2 h-2 rounded-full bg-blue-500"></span>
<span class="font-medium">{{ id }}</span>
</div>
<span class="text-sm text-gray-500 dark:text-gray-400">{{ unit.age }}</span>
</a>
{% endfor %}
{% if units|length == 0 %}
<p class="text-gray-500 dark:text-gray-400 text-sm">No active units</p>
{% endif %}

View File

@@ -0,0 +1,23 @@
{% for id, unit in units.items() %}
<a href="/unit/{{ id }}"
class="flex items-center justify-between p-3 rounded-lg hover:bg-gray-50 dark:hover:bg-gray-700 border border-gray-200 dark:border-gray-700">
<div class="flex items-center space-x-3">
<span class="w-3 h-3 rounded-full
{% if unit.status == 'OK' %} bg-green-500
{% elif unit.status == 'Pending' %} bg-yellow-500
{% else %} bg-red-500 {% endif %}">
</span>
<!-- No deployed dot for benched units -->
<span class="font-medium">{{ id }}</span>
</div>
<span class="text-sm text-gray-500 dark:text-gray-400">{{ unit.age }}</span>
</a>
{% endfor %}
{% if units|length == 0 %}
<p class="text-gray-500 dark:text-gray-400 text-sm">No benched units</p>
{% endif %}