{% extends "ui/_layout.html" %} {% block title %}Event log - bty-web{% endblock %} {% block content %}

Event log

slim audit trail of operator + machine activity
{# Filter form. GET so links stay shareable + back-button friendly. #}
{% if not events %}
No events match the current filter. The log starts populating as machines check in and operators make changes; if you've just started bty-web, hit a few endpoints and refresh.
{% else %}
{% for e in events %} {% endfor %}
When Kind Summary Subject Actor
{{ e.ts }} {# Badge colour by event family. The mapping is permissive: an unknown kind falls back to the neutral light badge. #} {% set family = e.kind.split('.')[0] %} {% set badge_map = { 'machine': 'bg-info text-dark', 'image': 'bg-primary', 'catalog': 'bg-secondary', 'boot': 'bg-warning text-dark', 'settings': 'bg-dark', } %} {% set badge = badge_map.get(family, 'bg-light text-dark border') %} {{ e.kind }} {{ e.summary }} {% if e.subject_kind == "machine" and e.subject_id %} {{ e.subject_id }} {% elif e.subject_id %} {{ e.subject_id }} {% else %} - {% endif %} {% if e.actor %} {{ e.actor }} {% else %} - {% endif %}
{% endif %} {% endblock %}