{% extends "base.html" %} {% block title %}Audit{% endblock %} {% block body %} {% set families = {'record': 'record', 'note': 'record', 'conflict': 'record', 'grant': 'access', 'scope': 'access', 'invite': 'access', 'account': 'access', 'login': 'auth', 'auth': 'auth', 'session': 'auth', 'token': 'auth', 'consent': 'auth', 'web': 'auth', 'agent': 'agent'} %} {% set keep = {'target': f.get('target', ''), 'days': f.get('days', ''), 'all': f.get('all', ''), 'agent': f.get('agent', '')} %}

Audit log

{% if all %}Everything on this server.{% else %}Your own activity and activity in scopes you own.{% endif %}

Export CSV
{% if f.get('agent') %}{% endif %} {% if me.is_admin %}{% endif %}
{% for e in rows %} {% set day = e.at|when('%A, %B %d') %} {% if loop.changed(day) %}
{{ day }}
{% endif %}
{{ e.at|when('%H:%M') }} {{ e.action }}{% if e.target %}{{ e.target }}{% endif %} {% if e.detail %}{{ e.detail }}{% endif %} {{ e.account_email or '—' }}{% if e.agent_name %} {{ e.agent_name }}{% endif %} {% if e.ip_prefix %}{{ e.ip_prefix }}{% endif %}
{% else %}
No events.
{% endfor %}
{% endblock %}