go-wiki/templates/audit.html
2026-07-14 20:46:19 +02:00

50 lines
1.8 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Audit-Log Wiki</title>
<link rel="stylesheet" href="/static/style.css">
</head>
<body>
<div class="layout">
<main class="content audit-page">
<h1>Audit-Log</h1>
<p class="audit-intro">Die letzten {{len .Events}} protokollierten Schreib-Aktionen, neueste zuerst.</p>
{{if not .Events}}
<p class="search-empty">Noch keine Ereignisse protokolliert.</p>
{{else}}
<div class="audit-table-wrap">
<table class="audit-table">
<thead>
<tr>
<th>Zeit</th>
<th>Team</th>
<th>Akteur</th>
<th>Aktion</th>
<th>Pfad</th>
<th>Quelle</th>
<th>Details</th>
</tr>
</thead>
<tbody>
{{range .Events}}
<tr>
<td>{{.Time.Format "2006-01-02 15:04:05"}}</td>
<td>{{if .Team}}{{.Team}}{{else}}—{{end}}</td>
<td>{{.Actor}}</td>
<td>{{.Action}}</td>
<td>{{if .Path}}{{.Path}}{{else}}—{{end}}</td>
<td>{{.Source}}</td>
<td>{{if .Detail}}{{.Detail}}{{else}}—{{end}}</td>
</tr>
{{end}}
</tbody>
</table>
</div>
{{end}}
</main>
</div>
</body>
</html>