{% extends "base.html" %} {% block title %}Patches · {{ agent.hostname }}{% endblock %} {% block content %}

Dashboard{{ org.name }}{{ agent.hostname }}

Patches

{{ agent.os }} {{ agent.os_version or '' }} · {% if status %}last scan {{ status.last_scan_at| pt('%Y-%m-%d %H:%M') }}{% else %}never scanned{% endif %}

‹ Device
{% if status and status.available > 0 %}
{% endif %}
{{ status.available if status else '—' }}
Updates available
{{ status.security if status else '—' }}
Security updates
{{ 'YES' if status and status.reboot_required else 'No' }}
Reboot required
{% if status and status.note %} {% endif %} {% if pending_apply %} {% elif last_cmd and last_cmd.status in ('pending','sent') %} {% endif %}

Available updates

{% if patches %} {% for p in patches %} {% endfor %}
UpdateKB / VersionCategorySeverity
{% if p.security %}security {% endif %}{{ p.name }} {{ p.kb or '—' }} {{ p.category or '—' }} {{ p.severity or '—' }}
{% else %}

{% if status %}No updates available — this device is up to date. ✓ {% else %}No scan yet. The agent (v0.4.5+) scans ~2.5 min after starting and every 12h — or hit Scan for updates.{% endif %}

{% endif %}
{% if last_cmd and last_cmd.result %}

Last {{ last_cmd.ctype.replace('_',' ') }} output · {{ last_cmd.created_at| pt('%m-%d %H:%M') }} · exit {{ last_cmd.exit_code if last_cmd.exit_code is not none else '—' }}

{{ last_cmd.result }}
{% endif %} {% endblock %}