{{define "content"}} {{$csrf := .CSRF}}{{$reverse := .Data.Reverse}}
{{if $reverse}}PTR zones for IPv4 and IPv6 address space. {{else}}Zones this server answers authoritatively.{{end}}
| Zone | {{if $reverse}}Kind | {{end}}Records | Serial | TTL | Status | Updated | Actions |
|---|---|---|---|---|---|---|---|
|
{{trimDot .Name}}
{{if .Description}} {{truncate 80 .Description}} {{end}}
|
{{if $reverse}}{{.Kind.Label}} | {{end}}{{num .RecordCount}} | {{.Serial}} | {{.DefaultTTL}} | {{statusWord .Enabled}} | {{timeAgo .UpdatedAt}} |
{{template "postform" dict
"Action" (printf "/zones/%d/toggle" .ID) "CSRF" $csrf
"Fields" (dict "enabled" (boolstr (not .Enabled)))
"Icon" (toggleIcon .Enabled)
"Class" "btn btn-sm btn-outline-secondary"
"Title" (printf "%s this zone" (toggleVerb .Enabled))}}
{{template "confirmform" dict
"Action" (printf "/zones/%d/delete" .ID) "CSRF" $csrf
"Icon" "bi-trash"
"Message" (printf "Delete zone %s and all %d of its records? This cannot be undone." (trimDot .Name) .RecordCount)}}
|