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

Audit Trail

Complete, immutable log of all system actions.

{{ logs.total }} record{{ 's' if logs.total != 1 else '' }} {% if filter_user or filter_action or filter_entity_type or filter_date_from or filter_date_to %} Filtered {% endif %}
Page {{ logs.page }} of {{ logs.pages }}
{% if logs.items %}
{% for entry in logs.items %} {% endfor %}
Timestamp User Role Action Entity Label IP Address
{{ entry.created_at.strftime('%Y-%m-%d %H:%M:%S') }} {{ entry.username }} {{ entry.user_role | title }} {{ entry.action }} {{ entry.entity_type }} {{ entry.entity_label or '—' }} {% if entry.entity_id %} #{{ entry.entity_id }} {% endif %} {{ entry.ip_address or '—' }}
{% else %}
No audit records match the current filters.
{% endif %}
{% if logs.pages > 1 %} {% endif %}
{% endblock %}