{{define "audit"}}{{template "top" .}} {{- with .Data}}

{{if .Query}}Lines found{{else}}Newest lines{{end}}

data/admin_audit.log{{if .Cut}}, its last 256 KB{{end}}; at most 500 lines
{{- if .Lines}}{{template "auditlist" (auditList $ .Lines)}}{{else}}

{{if .Query}}No line matches.{{else}}The audit log is empty.{{end}}

{{end}}
{{- end}} {{template "bottom" .}}{{end}} {{define "auditlist"}}
    {{- range .Lines}}
  1. {{if .At.IsZero}}-{{else}}{{template "local" .At}}{{end}}{{.Kind}}{{.Text}}
  2. {{- end}}
{{end}}