{% extends "flask_deck/base.html" %} {% block content %}

Audit Ledger {% if hash_chain_enabled %} {{ "Hash-Chained · Verified" if hash_chain_valid else "Hash-Chained · Tamper Detected" }} {% endif %}

{{ "{:,}".format(total) }} immutable mutation records · sensitive fields auto-redacted

{{ deck_icon("download", 12) }} Export CSV {{ deck_icon("download", 12) }} Export JSONL
{% if search_term or model_filter or action_filter or actor_filter or date_from or date_to %} Reset {% endif %}
{% for entry in entries %} {% else %} {% endfor %}
Timestamp ({{ active_timezone }}) Action Actor Resource Field-Level Diff Revert
{{ format_dt(entry.timestamp, '%Y-%m-%d %H:%M:%S') }} {{ entry.action }}
{{ entry.actor_name }}
{{ entry.actor_ip }}
{{ entry.model_label }} · {{ entry.record_repr }}
{{ entry.model_slug }}#{{ entry.record_pk }}
{% if entry.changes %}
{% for fname, delta in entry.changes.items() %}
{{ fname }}: {% if delta.old is not none %}{{ delta.old }}→{% endif %} {{ delta.new }}
{% endfor %}
{% endif %} {% if entry.metadata %}
{% for mk, mv in entry.metadata.items() %} {{ mk }}={{ mv }} {% endfor %}
{% endif %} {% if not entry.changes and not entry.metadata %} — {% endif %}
{% if can_revert and entry.is_revertible %} {% if demo_safe_mode %} {% else %}
{% endif %} {% else %} — {% endif %}
No audit records match the current filters.
Page {{ page }} of {{ pages }} · {{ "{:,}".format(total) }} entries
{% if page > 1 %}Prev{% endif %} {% if page < pages %}Next{% endif %}
{% endblock %} {% block extra_scripts %} {% endblock %}