{% 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=log.id[:16] ~ "...", breadcrumbs=[{"label": "Audit Logs", "href": "/audit"}, {"label": "Entry"}]) %} {% endcall %} {% endblock %} {% block content %}
{% if log.outcome == 'success' %} {% elif log.outcome == 'failure' %} {% else %} {% endif %}

{{ log.event_type }}: {{ log.action }}

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

{% if log.outcome == 'success' %} Success {% elif log.outcome == 'failure' %} Failure {% else %} {{ log.outcome or 'Unknown' }} {% endif %}
Event ID
{{ log.id }}
Event Type
{{ log.event_type }}
Action
{{ log.action }}
Timestamp
{{ log.timestamp.strftime('%Y-%m-%d %H:%M:%S') }}

Subject

Subject Type
{{ log.subject_type or 'Unknown' }}
Subject ID
{% if log.subject_id %} {{ log.subject_id }} {% else %} Not specified {% endif %}

Resource

Resource Type
{{ log.resource_type or 'Not specified' }}
Resource ID
{% if log.resource_id %} {{ log.resource_id }} {% else %} Not specified {% endif %}
{% if log.context or log.metadata %}
{% if log.context %}

Context

{% for key, value in log.context.items() %}
{{ key }}
{{ value }}
{% endfor %}
{% endif %} {% if log.metadata %}

Metadata

{{ log.metadata | tojson(indent=2) }}
{% endif %}
{% endif %} {% if log.outcome == 'failure' and log.error_message %}

Error Details

{{ log.error_message }}

{% endif %}
Back to Audit Logs
{% endblock %}