{{define "title"}}Security Events{{end}} {{define "content"}}

Security Events

100 200 500
{{if .Events}} {{range .Events}} {{end}}
Time Type IP User ID Detail
{{shortTime .CreatedAt}} {{$t := .Type}} {{if eq $t "login_failed"}}{{$t}} {{else if eq $t "ip_banned"}}{{$t}} {{else if eq $t "login_ok"}}{{$t}} {{else}}{{$t}}{{end}} {{.IP}} {{if .UserID.Valid}}{{.UserID.Int64}}{{end}} {{.Detail}}
{{else}}
No security events recorded.
{{end}}
{{end}}