{{define "admin_guard"}}
{{t "guard.sub"}}
{{template "nav" .Nav}}{{.Error}}
{{end}}{{th "guard.defined_in"}} {{range $i, $p := .Policies}}{{if $i}}, {{end}}{{$p}}{{end}}.
{{t "guard.applied"}} {{if .Default}}{{range $i, $p := .Default}}{{if $i}}, {{end}}{{$p}}{{end}}{{else}}{{t "common.none"}}{{end}}.
| {{t "guard.col.scope"}} | {{t "guard.col.who"}} | {{t "guard.col.policy"}} |
|---|---|---|
| {{.Scope}} | {{.Who}} | {{.Policy}} |
{{th "guard.attached_nowhere"}}
{{end}} {{else}}{{th "guard.no_policies"}}
{{end}}{{t "guard.over_last"}} {{range .Windows}}{{if eq . $.Window}}{{.}}{{else}}{{.}}{{end}} {{end}}
{{if .Counts}}| {{t "guard.col.where"}} | {{t "guard.col.action"}} | {{t "guard.col.policy"}} | {{t "guard.col.category"}} | {{t "guard.col.requests"}} |
|---|---|---|---|---|
| {{.Where}} | {{.Action}} | {{.Policy}} | {{.Category}} | {{count .Count}} |
{{t "guard.nothing"}}
{{end}} {{if .Events}}| {{t "guard.col.when"}} | {{t "guard.col.request"}} | {{t "guard.col.where"}} | {{t "guard.col.model"}} | {{t "guard.col.action"}} | {{t "guard.col.policy"}} | {{t "guard.col.category"}} | {{t "guard.col.status"}} | ms |
|---|---|---|---|---|---|---|---|---|
| {{.At}} | {{.RequestID}} | {{.Where}} | {{.Model}} | {{.Action}} | {{.Policy}} | {{.Category}} | {{.Status}} | {{count .Ms}} |
{{th "guard.request_hint"}}
{{end}}