{{ m.last_seen_at or "-" }}{% if m.last_seen_ip %} from {{ m.last_seen_ip }}{% endif %}
Last flashed
{{ m.last_flashed_at or "-" }}
Created
{{ m.created_at }}
Updated
{{ m.updated_at }}
Assignment
{# Per-MAC event slice. Filtered to ``subject_kind=machine`` +
``subject_id=this MAC`` server-side; the link forwards the
same filter to /ui/events for drill-down. #}
{% with events=machine_events,
title="Recent activity for this machine",
link_to_full="/ui/events?subject_kind=machine&subject_id=" + m.mac %}
{% include "ui/_events_card.html" %}
{% endwith %}
{% endblock %}