{{define "title"}}Users · restic-manager{{end}} {{define "content"}} {{$page := .Page}}
Dashboard/ Settings/ users

Users {{len $page.Users}}

{{/* Header — Username/Email/Role/Last login are clickable sort links. Hrefs are pre-built server-side ($page.SortHrefs) so html/template's URL-attribute escaping doesn't trip on the '=' chars. Same pattern as the audit log. */}} {{range $page.Users}}
{{if .Email}}{{.Email}}{{else}}{{end}}
{{.Role}}
{{if eq .LastLoginAt "never"}}never{{else}}{{.LastLoginAt}}{{end}}
{{if .Disabled}}disabled {{else if .MustChangePassword}}setup pending {{else}}enabled{{end}} {{if eq .AuthSource "oidc"}}oidc{{end}}
{{end}}
{{end}}