{% extends "base.html" %} {% block title %}Devices – {{ app_name }}{% endblock %} {% block page_title %}Device Health{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
| Work Place | Hostname | IP | MAC / Type | Status | Logs | Last Seen | Config Sync | Actions |
|---|---|---|---|---|---|---|---|---|
|
{{ device.nume_masa or '—' }}
{% if is_wmt %}
WMT {% endif %} |
{{ device.hostname }} | {{ device.device_ip }} |
{% if is_wmt %}
{{ device.mac_address }}
{% else %}
—
{% endif %}
|
{% if device.status == 'active' %} Active {% elif device.status == 'maintenance' %} Maintenance {% else %} Offline {% endif %} | {{ device_log_counts.get(device.id, 0) }} | {% if device.last_seen %} {{ device.last_seen | local_dt }} {% else %}—{% endif %} | {% if not is_wmt %} — {% elif has_pending %} {# Unknown device waiting for admin approval #} Pending Approval {% elif device.config_synced_at %} {# Device checked in and server confirmed configs match #} OK · {{ device.config_synced_at | local_dt('%m-%d %H:%M') }} {% elif device.config_updated_at %} {# Admin pushed config but client hasn't confirmed sync yet #} Awaiting client {% else %} {# WMT device registered but never checked in #} Never synced {% endif %} | |
| No devices registered yet. | ||||||||