{{ define "main" }}

User Account

{{ if ne .Account.PasswordReset nil }}

Password Reset

Direct the user to /account/{{ .Account.Id }}/reset/{{ .Account.PasswordReset }} so that they can create their password.
{{ end }}

Status

The account {{ .Account.Username }} was created on {{ .Account.Created }} and {{ if eq .Account.Created .Account.LastLogin }} never logged in. {{ else }} last logged in on {{ .Account.LastLogin }}. {{ end }}

{{ if .Account.IsAdmin }}

This accounts has admin privileges on TfStated.

{{ end }} {{ if .Page.IsAdmin }}

Operations

Edit User Account
{{ if .UsernameDuplicate }} This username already exist. {{ else if .UsernameInvalid }} Invalid username. Username must start with a letter and be composed of only letters, numbers or underscores. {{ end }}
Danger Zone
{{ end }}

Activity

{{ if gt (len .Versions) 0 }}
{{ range .Versions }} {{ end }}
State Created
{{ index $.StatePaths .StateId.String }} {{ .Created }}
{{ else }}

This user account has not authored any change currently tracked by TfStated.

{{ end }} Go back to the user accounts list {{ end }}