feat(panel.html): change bg color based on status
This commit is contained in:
@@ -28,8 +28,7 @@
|
||||
{% 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>
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user