munin/templates/audit.html
Thomas Adamek 466f1e40af Workspaces, Änderungshistorie, Papierkorb, Nutzungsübersicht, Hilfe
Umsetzung der Ausbaustufen 2.1, 3.6, 3.8, 3.9, 4.1, 4.2, 4.4, 4.6,
5.1–5.4 (Details in AUSBAUSTUFEN.md).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-25 07:44:52 +02:00

54 lines
1.9 KiB
HTML

{{template "kopf" .}}
<div class="seitenkopf">
<div class="seitenkopf-titel">
{{/* Das Protokoll über alle Projekte sieht nur der Plattform-Admin — für ihn
gibt es einen eigenen Abschnitt auf seiner Hilfeseite. */}}
<h1>Protokoll {{if .Data.Global}}{{template "hilfelink" "plattform-admin#protokoll-ueber-alle-projekte"}}{{else}}{{template "hilfelink" "zugaenge#protokoll"}}{{end}}</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" .}}