{% extends "base.html" %} {% load scoped_tags %} {% block title %}Audit Trail{% endblock %} {% block page_title %}Audit Trail{% endblock %} {% block page_subtitle %}Immutable, hash-chained event trace (Layer 6){% endblock %} {% block layer_indicator %}L6 Audit · L7 Temporal{% endblock %} {% block content %} {# Hash chain status #}
{% if chain_valid %}

Hash chain verified

All audit entries are intact. The chain has not been tampered with (Invariant 4).

{% elif chain_valid == None %} ?

Chain verification unavailable

Unable to verify the hash chain at this time.

{% else %}

Hash chain integrity failure

One or more audit entries have been modified. Investigate immediately.

{% endif %}
{# Filters #}
{% if active_action or active_target_type %} Clear {% endif %}
{{ entries|length }} entr{{ entries|length|pluralize:"y,ies" }}
{% if entries %}
{% for entry in entries %} {% endfor %}
Seq Action Target Actor Timestamp
{{ entry.sequence|default:"—" }} {% include "components/_state_badge.html" with state=entry.action %} {{ entry.target_type }}:{{ entry.target_id|truncate_id }} {{ entry.actor_id|truncate_id }} {{ entry.timestamp|format_dt }} Detail
{% else %} {% include "components/_empty_state.html" with title="No audit entries" message="All operations are traced. Entries will appear here as actions occur." %} {% endif %} {% endblock %}