{% extends "layouts/app.html" %} {% from "components/breadcrumb.html" import page_header %} {% block title %}Audit Log Detail - NeoZen Admin{% endblock %} {% block page_header %} {% call page_header("Audit Log Entry", subtitle=entry.id[:16] ~ "...", breadcrumbs=[{"label": "Audit Logs", "href": "audit"}, {"label": "Entry"}]) %} {% endcall %} {% endblock %} {% block content %}
{% if entry.outcome == 'success' %} {% elif entry.outcome == 'failure' %} {% else %} {% endif %}

{{ entry.event_type }}: {{ entry.action }}

{{ entry.timestamp.strftime('%Y-%m-%d %H:%M:%S UTC') }}

{% if entry.outcome == 'success' %} Success {% elif entry.outcome == 'failure' %} Failure {% else %} {{ entry.outcome or 'Unknown' }} {% endif %}
Event ID
{{ entry.id }}
Event Type
{{ entry.event_type }}
Action
{{ entry.action }}
Timestamp
{{ entry.timestamp.strftime('%Y-%m-%d %H:%M:%S') }}
By
{% if actor %} {{ actor.email }} {% elif entry.actor_id %} {{ entry.actor_id }} (deleted) {% else %} Not recorded {% endif %}
On
{% if subject %} {{ subject.email }} {% elif entry.subject_id %} {{ entry.subject_id }} (deleted) {% else %} Not recorded {% endif %}
IP address
{{ entry.ip_address or "Not recorded" }}
User agent
{{ entry.user_agent or "Not recorded" }}
{% if entry.resource_type or entry.resource_id %}
Resource
{{ entry.resource_type }} {{ entry.resource_id }}
{% endif %}
{% if entry.details %}

Details

{% for key, value in entry.details.items() %}
{{ key }}
{{ value }}
{% endfor %}
{% endif %}
Back to Audit Logs
{% endblock %}