{% extends 'base.html' %} {% load static %} {% block title %}Audit Trail Report{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

📋 Audit Trail Report

🔍 Filters
Audit Logs ({{ page_obj.paginator.count }} total)
Showing {{ page_obj.start_index }}-{{ page_obj.end_index }} of {{ page_obj.paginator.count }}
{% for log in page_obj %}
{{ log.event_type|title }} {{ log.user.get_full_name|default:"Anonymous" }} {{ log.role_at_time|default:"Unknown"|title }} {% if log.permission_checked %} {{ log.permission_checked }} - {% if log.permission_granted %}Granted{% else %}Denied{% endif %} {% endif %}
{{ log.timestamp|date:"M d, Y H:i:s" }} {% if log.ip_address %}
IP: {{ log.ip_address }} {% endif %}
{{ log.action }} in {{ log.module|title }} {% if log.branch_context %} {{ log.branch_context }} {% endif %}
{{ log.description }} {% if log.request_path %}
🔗 {{ log.request_method|default:"GET" }} {{ log.request_path }} {% if log.response_time %} ({{ log.response_time|floatformat:0 }}ms) {% endif %} {% endif %} {% if log.is_security_event and log.severity %}
{{ log.severity|title }} Security Event {% endif %}
{% empty %}
🔍
No audit logs found

Try adjusting your filters or search criteria.

{% endfor %} {% if page_obj.has_other_pages %} {% endif %}
{% endblock %} {% block extra_js %} {% endblock %}