{{template "admin/layout_head" (dict "ctxData" . "pageClass" "admin user")}}
ID{{SortArrow "oldest" "newest" .SortType false}} | {{ctx.Locale.Tr "admin.users.name"}} {{SortArrow "alphabetically" "reversealphabetically" $.SortType true}} | {{ctx.Locale.Tr "email"}} | {{ctx.Locale.Tr "admin.users.activated"}} | {{ctx.Locale.Tr "admin.users.restricted"}} | {{ctx.Locale.Tr "admin.users.2fa"}} | {{ctx.Locale.Tr "admin.users.created"}} | {{ctx.Locale.Tr "admin.users.last_login"}} {{SortArrow "lastlogin" "reverselastlogin" $.SortType false}} | ||
---|---|---|---|---|---|---|---|---|---|
{{.ID}} | {{.Name}} {{if .IsAdmin}} {{ctx.Locale.Tr "admin.users.admin"}} {{else if eq 2 .Type}}{{/* Reserved user */}} {{ctx.Locale.Tr "admin.users.reserved"}} {{else if eq 4 .Type}}{{/* Bot "user" */}} {{ctx.Locale.Tr "admin.users.bot"}} {{else if eq 5 .Type}}{{/* Remote user */}} {{ctx.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}} | {{ctx.DateUtils.AbsoluteShort .CreatedUnix}} | {{if .LastLoginUnix}}{{ctx.DateUtils.AbsoluteShort .LastLoginUnix}} | {{else}}{{ctx.Locale.Tr "admin.users.never_login"}} | {{end}}