{% extends "admin/base.html" %} {% block title %}Audit Log{% endblock %} {% block content %}

Audit Log

{{ summary.total_events }}
Total Events
{{ summary.events_today }}
Today
{{ summary.failed_events }}
Failures (7d)
{{ summary.active_users_today }}
Active Users Today
Clear
{% if logs | length > 0 %}
{% for log in logs %} {% endfor %}
Time User Action Category Entity Status
{{ log.timestamp | truncate(length=19, end="") }} {% if log.username %}{{ log.username }}{% else %}-{% endif %} {{ log.action | replace(from="_", to=" ") | title }} {{ log.category | title }} {% if log.entity_type %}{{ log.entity_type }}{% if log.entity_title %}: {{ log.entity_title | truncate(length=30) }}{% elif log.entity_id %} #{{ log.entity_id }}{% endif %}{% else %}-{% endif %} {% if log.status == "success" %}{% else %}{% endif %} View
{% else %}

No audit events found

{% if filter.action or filter.category or filter.username or filter.status or filter.search or filter.from_date or filter.to_date %}Try adjusting your filters.{% else %}Audit events will appear here as actions are performed.{% endif %}

{% endif %}
{% if summary.recent_failures | length > 0 %}

Recent Failures

{% for fail in summary.recent_failures %}
{{ fail.action | replace(from="_", to=" ") | title }} {{ fail.timestamp | truncate(length=16, end="") }}
{{ fail.error_message | default(value="Unknown error") }}
{% endfor %}
{% endif %}
{% endblock %}