nas-burnin/app/templates/audit.html
Brandon Walter a8a7d99621
Some checks are pending
Security scan / pip-audit (push) Waiting to run
Security scan / bandit (push) Waiting to run
Security scan / gitleaks (push) Waiting to run
Security scan / mypy (push) Waiting to run
rename: TrueNAS Burn-In → NAS Burn-In (1.0.0-38)
Product display name only — page titles, headers, email, browser
notification, FastAPI app title. Repo, container_name, file paths,
and infrastructure identifiers (truenas-burnin everywhere) stay put
to avoid breaking deployment.
2026-05-03 14:01:40 -04:00

55 lines
1.6 KiB
HTML

{% extends "layout.html" %}
{% block title %}NAS Burn-In — Audit Log{% endblock %}
{% block content %}
<div class="page-toolbar">
<h1 class="page-title">Audit Log</h1>
<div class="toolbar-right">
<span class="page-subtitle">Last 200 events</span>
</div>
</div>
<div class="table-wrap">
<table>
<thead>
<tr>
<th class="col-job">#</th>
<th>Time</th>
<th>Event</th>
<th class="col-drive">Drive</th>
<th>Operator</th>
<th>Message</th>
</tr>
</thead>
<tbody>
{% if events %}
{% for e in events %}
{% set color = event_colors.get(e.event_type, 'unknown') %}
<tr>
<td class="mono text-muted">{{ e.id }}</td>
<td class="mono text-muted" style="white-space:nowrap">{{ e.created_at | format_dt_full }}</td>
<td>
<span class="chip chip-{{ color }}">{{ e.event_type | replace('_', ' ') }}</span>
</td>
<td class="col-drive">
{% if e.devname %}
<span class="drive-name">{{ e.devname }}</span>
{% if e.serial %}<span class="drive-model mono">{{ e.serial }}</span>{% endif %}
{% else %}
<span class="cell-empty"></span>
{% endif %}
</td>
<td class="text-muted">{{ e.operator or '—' }}</td>
<td class="text-muted" style="max-width:360px;white-space:normal">{{ e.message }}</td>
</tr>
{% endfor %}
{% else %}
<tr>
<td colspan="6" class="empty-state">No audit events yet.</td>
</tr>
{% endif %}
</tbody>
</table>
</div>
{% endblock %}