{% extends "base.html" %} {% block title %}Audit{% endblock %} {% block page_title %}Audit{% endblock %} {% block content %}

{{ pagination.total }} events{% if active_filters.search %} matching "{{ active_filters.search }}"{% endif %}

{% if active_filters.search or active_filters.category or active_filters.severity or active_filters.agent %} Clear {% endif %}
{% for e in events %} {% set sev_colors = {"info": "border-l-text-3", "success": "border-l-green", "warning": "border-l-amber", "danger": "border-l-danger"} %} {% set sev_dots = {"info": "text-text-3", "success": "text-green", "warning": "text-amber", "danger": "text-danger"} %}
{{ e.timestamp.strftime('%b %d %H:%M:%S') }}

{{ e.summary }}

{{ e.event_type }} {% if e.agent_name %} {{ e.agent_name | replace('_', ' ') | title }} {% endif %} {% if e.tool_name %} {{ e.tool_name }} {% endif %}
{{ e.display_name }} {{ e.event_category }}
{% endfor %} {% if not events %}

{% if active_filters.search or active_filters.category or active_filters.severity or active_filters.agent %}No events matching these filters{% else %}No events recorded yet{% endif %}

{% endif %}
{% if pagination.total_pages > 1 %}

Page {{ pagination.page }} of {{ pagination.total_pages }}

{% if pagination.has_prev %} Prev {% endif %} {% if pagination.has_next %} Next {% endif %}
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}