{{ extends "../../_layouts/default" }} {{ block body() }}

USER

Manage users.

{{ .User.Name }}

Login name
{{ .User.LoginName }}
Email
{{ .User.Email }}
Administrator
{{ .User.Admin ? "Yes" : "No" }}
Type
{{ .User.Type }}
Status
{{ .User.Status == 1 ? "Active" : "Blocked" }}
Created at
{{ time(.User.CreatedAt) }}
Updated at
{{ time(.User.UpdatedAt) }}
{{if .Roles}}
Roles
{{ roles := .Roles }} {{ range .User.Roles }} {{if name, ok := roles[.]; ok}} {{ name }} {{end}} {{ end }}
{{end}}
Return
{{ end }}