{% extends "base.html" %} {% block title %}Devices – {{ app_name }}{% endblock %} {% block page_title %}Device Health{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

{{ devices|selectattr('status','equalto','active')|list|length }}

Active

{{ devices|selectattr('status','equalto','inactive')|list|length }}

Offline

{{ devices|selectattr('status','equalto','maintenance')|list|length }}

Maintenance

{{ devices|length }}

Total

{{ devices|selectattr('mac_address')|list|length }}

WMT Clients

{{ pending_count }}

Pending Approval
{% for device in devices %} {% set is_wmt = device.mac_address is not none and device.mac_address != '' %} {% set has_pending = is_wmt and (pending_by_mac.get(device.mac_address, 0) > 0) %} {% else %} {% endfor %}
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.
Config Sync legend: OK — client confirmed configs match Awaiting client — server pushed new config, waiting for client check-in Pending Approval — new/unknown device waiting for admin Never synced — registered but hasn't checked in
{% endblock %} {% block extra_js %} {% endblock %}