{{define "admin_guard"}} {{t "guard.title"}} · llmgw

{{t "guard.title"}}

{{t "guard.sub"}}

{{template "nav" .Nav}}
{{if .Error}}{{end}} {{if .Off}}{{end}}

{{t "guard.policies"}}

{{if .Policies}}

{{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}}.

{{if .Attachments}} {{range .Attachments}}{{end}}
{{t "guard.col.scope"}}{{t "guard.col.who"}}{{t "guard.col.policy"}}
{{.Scope}}{{.Who}}{{.Policy}}
{{else}}

{{th "guard.attached_nowhere"}}

{{end}} {{else}}

{{th "guard.no_policies"}}

{{end}}

{{t "guard.what_they_did"}}

{{t "guard.over_last"}} {{range .Windows}}{{if eq . $.Window}}{{.}}{{else}}{{.}}{{end}} {{end}}

{{if .Counts}} {{range .Counts}}{{end}}
{{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}}
{{else}}

{{t "guard.nothing"}}

{{end}} {{if .Events}}

{{t "guard.recent"}}

{{range .Events}}{{end}}
{{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}}{{if .Rule}} · {{.Rule}}{{end}}{{.Status}}{{count .Ms}}

{{th "guard.request_hint"}}

{{end}}
{{end}}