Files
EasyDNS-Web/internal/server/web/templates/pages/audit.gohtml
T
Mateusz Gruszczyński 8c4d463f1e
Go quality gates / test (push) Waiting to run
first commit
2026-11-30 11:37:40 +01:00

3 lines
1.4 KiB
Go Template

{{define "content"}}<section class="panel"><div class="toolbar"><div class="toolbar-title"><h2>Administrative events</h2><p>Most recent administrative operations</p></div><form method="get" action="/audit" class="toolbar-form"><label class="field-label" for="auditN">Tail length</label><select class="field field-select" id="auditN" name="n">{{range auditSizes}}<option value="{{.}}" {{if eq (selectval $.Data.Filter "n") (string .)}}selected{{end}}>{{.}}</option>{{end}}</select><button type="submit" class="btn-ui">Load events</button></form></div>
<div class="table-scroll"><table class="data-table"><thead><tr><th>TIMESTAMP</th><th>ACTOR</th><th>ACTION</th><th>TARGET</th><th>RESULT</th><th>DETAILS</th></tr></thead><tbody>{{range .Data.Audit}}<tr><td class="mono subtle">{{when .TimeUnix}}</td><td class="mono">{{.Actor}}</td><td>{{.Action}}</td><td class="mono">{{.Target}}</td><td><span class="dot {{statusclass .Result}}"></span>{{.Result}}</td><td class="break-any">{{.Detail}}</td></tr>{{else}}<tr><td colspan="6" class="empty">No audit events returned by EasyDNS.</td></tr>{{end}}</tbody></table></div><div class="table-footer"><span>{{len .Data.Audit}} entries returned · maximum supported by API: 10,000</span></div></section><div class="notice-inline mt-panel">The audit endpoint records management operations. It is not a DNS query log and does not provide date-range filters or pagination.</div>{{end}}