38 lines
1.0 KiB
HTML
38 lines
1.0 KiB
HTML
{% extends "_layout.html" %}
|
|
{% set active = "audit" %}
|
|
{% block title %}beaver-gateway · audit{% endblock %}
|
|
{% block content %}
|
|
<h2>Audit log</h2>
|
|
<div class="card">
|
|
{% if audit %}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Time</th><th>Actor</th><th>Kind</th><th>Agent</th><th>Detail</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for row in audit %}
|
|
<tr>
|
|
<td><code>{{ row.ts | fmt_dt }}</code></td>
|
|
<td>{{ row.actor }}</td>
|
|
<td><span class="pill">{{ row.kind }}</span></td>
|
|
<td>{{ row.agent_name or "—" }}</td>
|
|
<td><code>{{ row.detail_json | fmt_detail }}</code></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
<p class="muted" style="margin-top:1rem;">
|
|
{% if next_before %}
|
|
<a href="{{ p }}/audit?before={{ next_before }}">Older entries →</a>
|
|
{% else %}
|
|
End of log.
|
|
{% endif %}
|
|
</p>
|
|
{% else %}
|
|
<p class="muted">Nothing logged yet.</p>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %}
|