munin/templates/audit.html
2026-09-15 20:36:26 +02:00

52 lines
1.6 KiB
HTML

{{template "kopf" .}}
<div class="seitenkopf">
<div class="seitenkopf-titel">
<h1>Protokoll</h1>
<span class="hilfe">
Die jüngsten {{len .Data.Events}} Vorgänge, neueste zuerst.
{{if .Data.Global}}Über alle Projekte hinweg.{{end}}
Einträge werden nach 90 Tagen automatisch entfernt.
</span>
</div>
</div>
{{if .Data.Events}}
<div class="tabelle-huelle">
<table class="tabelle">
<thead>
<tr>
<th>Zeitpunkt</th>
{{if .Data.Global}}<th>Projekt</th>{{end}}
<th>Wer</th>
<th>Vorgang</th>
<th>Eintrag</th>
<th>Herkunft</th>
<th>IP</th>
<th>Details</th>
</tr>
</thead>
<tbody>
{{$projekte := .Data.ProjectNames}}{{$global := .Data.Global}}
{{range .Data.Events}}
<tr>
<td>{{datum .Timestamp}}</td>
{{if $global}}<td>{{with index $projekte .ProjectID}}{{.}}{{else}}—{{end}}</td>{{end}}
<td>{{.Actor}}</td>
<td><code>{{.Action}}</code></td>
<td>{{if .EntrySlug}}<code>{{.EntrySlug}}</code>{{else}}—{{end}}</td>
<td>{{.Source}}</td>
<td>{{if .IP}}{{.IP}}{{else}}—{{end}}</td>
<td>{{if .Detail}}{{.Detail}}{{else}}—{{end}}</td>
</tr>
{{end}}
</tbody>
</table>
</div>
{{else}}
<div class="leer">
<p>Noch nichts protokolliert.</p>
</div>
{{end}}
{{template "fuss" .}}