{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin user")}}
ID{{SortArrow "oldest" "newest" .SortType false}} | {{.locale.Tr "admin.users.name"}} {{SortArrow "alphabetically" "reversealphabetically" $.SortType true}} | {{.locale.Tr "email"}} | {{.locale.Tr "admin.users.activated"}} | {{.locale.Tr "admin.users.restricted"}} | {{.locale.Tr "admin.users.2fa"}} | {{.locale.Tr "admin.users.created"}} | {{.locale.Tr "admin.users.last_login"}} {{SortArrow "lastlogin" "reverselastlogin" $.SortType false}} | |
---|---|---|---|---|---|---|---|---|
{{.ID}} | {{.Name}} {{if .IsAdmin}} {{$.locale.Tr "admin.users.admin"}} {{else if eq 2 .Type}}{{/* Reserved user */}} {{$.locale.Tr "admin.users.reserved"}} {{else if eq 4 .Type}}{{/* Bot "user" */}} {{$.locale.Tr "admin.users.bot"}} {{else if eq 5 .Type}}{{/* Remote user */}} {{$.locale.Tr "admin.users.remote"}} {{end}} | {{.Email}} | {{if .IsActive}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}} | {{if .IsRestricted}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}} | {{if index $.UsersTwoFaStatus .ID}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}} | {{DateTime "short" .CreatedUnix}} | {{if .LastLoginUnix}}{{DateTime "short" .LastLoginUnix}} | {{else}}{{$.locale.Tr "admin.users.never_login"}} | {{end}}