{% extends "base.html" %} {% from "components/ui.html" import page_header, breadcrumb_nav, badge %} {% block title %}Audit Log Details - {{ config.APP_NAME }}{% endblock %} {% block content %} {% set breadcrumbs = [ {'text': 'Audit Logs', 'url': url_for('audit_logs.list_audit_logs')}, {'text': 'Details'} ] %} {{ page_header( icon_class='fas fa-history', title_text='Audit Log Details', subtitle_text='Detailed information about this change', breadcrumbs=breadcrumbs ) }}

{{ _('Change Information') }}

Timestamp
{{ audit_log.created_at|user_datetime('%Y-%m-%d %H:%M:%S') }}
User
{% if audit_log.user %} {{ audit_log.user.display_name }} ({{ audit_log.user.username }}) {% else %} System {% endif %}
Action
{{ badge(audit_log.action, audit_log.get_color()) }}
Entity
{{ audit_log.entity_type }}#{{ audit_log.entity_id }} {% if audit_log.entity_name %}
{{ audit_log.entity_name }} {% endif %}
{% if audit_log.field_name %}
Field
{{ audit_log.field_name }}
{% endif %} {% if audit_log.change_description %}
Description
{{ audit_log.change_description }}
{% endif %}
{% if audit_log.field_name %}

{{ _('Change Details') }}

{% if audit_log.old_value %}
Old Value
{{ audit_log.get_old_value() }}
{% endif %} {% if audit_log.new_value %}
New Value
{{ audit_log.get_new_value() }}
{% endif %}
{% endif %}

{{ _('Request Information') }}

{% if audit_log.ip_address %}
IP Address
{{ audit_log.ip_address }}
{% endif %} {% if audit_log.request_path %}
Request Path
{{ audit_log.request_path }}
{% endif %} {% if audit_log.user_agent %}
User Agent
{{ audit_log.user_agent }}
{% endif %}
Back to List View Entity History
{% endblock %}