{{define "admin_api_keys"}}{{template "header" .}}

All API keys across every user. Used for OpenSubsonic apiKey= authentication.

{{if .Data}} {{range .Data}} {{end}}
UserNameClientCreatedLast usedStatus
{{.Username}} {{.Key.Name}} {{.Key.ClientDescription}} {{fmtTime .Key.CreatedAt}} {{if .Key.LastUsedAt.Valid}}{{fmtTime .Key.LastUsedAt.Time}}{{else}}never{{end}} {{if .Key.RevokedAt.Valid}}Revoked{{else}}Active{{end}} {{if not .Key.RevokedAt.Valid}}
{{template "csrf_field" $.CSRFToken}}
{{end}}
{{else}}

No API keys have been created yet.

{{end}} {{template "footer" .}}{{end}}