{% extends "ui/_layout.html" %} {% block title %}Event log - bty-web{% endblock %} {% block content %}
| When | Kind | Summary | Subject | Actor | Source IP |
|---|---|---|---|---|---|
| {{ 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 %} |
{% if e.source_ip %}
{# Click to pivot: same /ui/events page filtered
down to this IP. Useful for "what else did
this workstation / target do?". #}
{{ e.source_ip }}
{% else %}
-
{% endif %}
|