{% extends "base.html" %} {% block title %}Audit Log — HARIS{% endblock %} {% block content %}
| Time | User | Action | Resource | IP Address | Details |
|---|---|---|---|---|---|
| {{ event.occurred_at[:16].replace('T', ' ') if event.occurred_at else '—' }} | {{ event.user_email or 'system' }} | {% set action = event.action or '' %} {% if action in ('login', 'logout', 'login_failed', 'email_verified', 'resend_verification') %} {{ action }} {% elif action in ('user_created', 'user_updated', 'user_deleted', 'role_changed', 'password_changed', 'session_revoked') %} {{ action }} {% elif action.startswith('scan') %} {{ action }} {% elif action.startswith('template') %} {{ action }} {% else %} {{ action or '—' }} {% endif %} |
{% if event.resource_type %}
{{ event.resource_type }}
{% if event.resource_id %}
:
{{ event.resource_id[:16] }}{% if event.resource_id|length > 16 %}…{% endif %}
{% endif %}
{% else %}
—
{% endif %}
|
{{ event.ip_address or '—' }} |
{% if event.details_json %}
View details{{ event.details_json }}
|
| No audit log events found. | |||||