{{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.admin"}} | {{.locale.Tr "admin.users.restricted"}} | {{.locale.Tr "admin.users.2fa"}} | {{.locale.Tr "admin.users.repos"}} | {{.locale.Tr "admin.users.created"}} | {{.locale.Tr "admin.users.last_login"}} {{SortArrow "lastlogin" "reverselastlogin" $.SortType false}} | {{.locale.Tr "admin.users.edit"}} | |
---|---|---|---|---|---|---|---|---|---|---|---|
{{.ID}} | {{.Name}} | {{.Email}} | {{if .IsActive}}{{svg "octicon-check"}}{{else}}{{svg "octicon-x"}}{{end}} | {{if .IsAdmin}}{{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}} | {{.NumRepos}} | {{template "shared/datetime/short" (dict "Datetime" .CreatedUnix.FormatLong "Fallback" .CreatedUnix.FormatShort)}} | {{if .LastLoginUnix}}{{template "shared/datetime/short" (dict "Datetime" .LastLoginUnix.FormatLong "Fallback" .LastLoginUnix.FormatShort)}} | {{else}}{{$.locale.Tr "admin.users.never_login"}} | {{end}}{{svg "octicon-pencil"}} |