{% extends "base.html" %} {% block title %}{{ device.hostname }} – {{ app_name }}{% endblock %} {% block page_title %}Device: {{ device.hostname }}{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

{{ device.nume_masa or device.hostname }} {% if device.status == 'active' %} Active {% elif device.status == 'maintenance' %} Maintenance {% else %} Offline {% endif %} {% if device.mac_address %} WMT {% endif %}

{{ device.hostname }} • {{ device.device_ip }}
Device Info
{% if device.description %} {% endif %}
Hostname {{ device.hostname }}
IP Address {{ device.device_ip }}
Work Place {{ device.nume_masa or '—' }}
Type {{ device.device_type or '—' }}
OS {{ device.os_version or '—' }}
Location {{ device.location or '—' }}
Description {{ device.description }}
Last Seen {{ device.last_seen | local_dt('%Y-%m-%d %H:%M:%S') if device.last_seen else '—' }}

{{ log_stats.total }}

Total Logs

{{ log_stats.last_24h }}

Last 24 h

{{ log_stats.by_severity.get('error', 0) + log_stats.by_severity.get('critical', 0) }}

Errors
{% if device.mac_address %}
WMT Client Info
MAC Address {{ device.mac_address }}
Config Updated {{ device.config_updated_at | local_dt('%Y-%m-%d %H:%M:%S') if device.config_updated_at else 'Never' }}
Info Reviewed {% if device.info_reviewed_at and device.info_reviewed_at.year > 1970 %} {{ device.info_reviewed_at | local_dt('%Y-%m-%d %H:%M:%S') }} {% else %} Never reviewed {% endif %}
{% endif %} {% if log_stats.by_severity %}
Severity Breakdown
{% for sev, cnt in log_stats.by_severity.items() %} {{ sev }}: {{ cnt }} {% endfor %}
{% endif %}
Recent Logs (last 100) View All
{% if logs %}
{% for log in logs %} {% endfor %}
Timestamp Severity Message
{{ log.timestamp | local_dt('%Y-%m-%d %H:%M:%S') if log.timestamp else '—' }} {{ log.severity }} {{ log.resolved_message or '—' }}
{% else %}

No logs for this device yet.

{% endif %}
{% endblock %}