{{/* wide, because the Actions cell carries up to two forms, each an 11rem confirm field and a button: about 1100px of row, which 48rem clipped. What it clipped was the second form's button, leaving its confirm field looking like it belonged to the button before it. */}} {{define "width"}}wide{{end}} {{define "title"}}accounts · admin · {{.Site}}{{end}} {{define "content"}}

Accounts

Admin · the same read as gitbay admin user list.

{{if .Notice}}

{{.Notice}}

{{end}} {{if .Users}}
{{range .Users}} {{end}}
AccountStateCreatedLast seenActions
{{.Username}}{{if .Admin}} admin{{end}} {{.State}} {{when .CreatedAt}} {{if .LastSeen}}{{when .LastSeen}}{{else}}never{{end}} {{if .Admin}}
{{template "confirmfield" .Username}}
{{else if eq .State "active"}}
{{else}} {{/* An account that is not active cannot be promoted, but the row still draws the button so the cell keeps its shape. It carries no confirm field: nothing is confirmed, and a second field with the same placeholder as the disable form's reads as a duplicate of it. Disabled, so the form never posts. */}}
{{end}} {{if eq .State "disabled"}}
{{else}}
{{template "confirmfield" .Username}}
{{end}}
{{else}}

No account matches

{{end}} {{if .Next}}

more →

{{end}}

Creating and deleting an account, issuing an invite and asserting an address stay on the command line: each takes a key, mints a credential, or cannot be undone.

gitbay admin user create <name> --key - < key.pub
gitbay admin user delete <name> --yes
gitbay admin invite --email <address>
{{end}}