{{ template "layout" . }} {{ define "title" }}{{ call .T "Admin" }}{{ end }} {{ define "content" }} {{ template "header" . }}

{{ call .T "Pending Invites" }}

{{ if .Invites }} {{ range $invite := .Invites }} {{ end }}
{{ call .T "Link" }} {{ call .T "Date Generated" }}
{{ $.App.FrontEndURL }}/web/registration?invite={{ $invite.Code }} {{ $invite.CreatedAt.Format (call $.T "Jan _2 15:04:05 MST 2006") }}
{{ else }} {{ call .T "No invites to show." }} {{ end }}

{{ call .T "All Users" }}

{{ range $user := .Users }}
{{ end }}
{{ range $user := .Users }} {{ end }}
{{ call .T "User" }} {{ call .T "Players" }} {{ call .T "Max # players*" }} {{ call .T "Admin" }} {{ call .T "Locked" }} {{ call .T "Delete Account" }}
{{ $user.Username }} {{ if eq (len $user.Players) 1 }} {{ with $player := index $user.Players 0 }} {{ $player.Name }} {{ end }} {{ else if gt (len $user.Players) 1 }} {{ len $user.Players }} {{ end }}

{{ call .T "*Specify -1 to allow an unlimited number of players. Leave blank to use the default max number, which is %d." $.App.Config.DefaultMaxPlayerCount }}

{{ template "footer" . }} {{ end }}