{{define "content"}} {{$d := .Data}} {{if $d.Saved}}

Saved.

{{end}} {{if eq $d.Section "overview"}} {{with $d.Stats}}

Site

Users{{.Users}}{{if .Banned}} ({{.Banned}} banned){{end}}
Organisations{{.Orgs}}
Repositories{{.Repos}} ({{.Private}} private, {{.Unlisted}} unlisted)
Disk usage{{size $d.Used}}{{if $d.Quota}} (quota {{$d.QuotaText}} per owner){{end}}
Registration{{if eq $d.Registration "open"}}open to everyone{{else if eq $d.Registration "invite"}}invite only{{else}}closed{{end}}, email {{if eq $d.SignupEmail "off"}}not asked{{else}}{{$d.SignupEmail}}{{end}} change
Mail{{if $d.Mail}}configured{{else}}not configured, resets go through gitpocket passwd{{end}}
{{end}}

Newest accounts

{{range $d.Recent}}{{end}}
~{{.Name}}{{if .Org}}organisation{{else if .Admin}}admin{{end}}{{if .Banned}} banned{{end}}{{ago .Created}}
{{end}} {{if eq $d.Section "people"}}

People

{{if $d.Query}}clear{{end}}
{{range $d.Accounts}}{{else}}{{end}}
~{{.Name}} {{if .Org}}organisation{{else if .Admin}}admin{{end}}{{if .Banned}} banned{{end}} {{.Repos}} repos joined {{.Created.Format "2 Jan 2006"}} {{if ne .Name $.User.Name}}
{{if not .Org}}{{if .Admin}}{{else}}{{end}}{{end}}{{if .Banned}}{{else}}{{end}}
{{end}}
Nobody matches.
{{end}} {{if eq $d.Section "signup"}}

Registration

Email on sign up

Addresses are not verified at sign up.{{if $d.Mail}} People can confirm theirs later from settings.{{end}}

Invites

{{if $d.Invites}}{{range $d.Invites}}{{end}}
https://{{$.Host}}/register?invite={{.}}
{{else}}

No unused invites.

{{end}}
{{end}} {{if eq $d.Section "projects"}}

Front page

Numbered projects appear on the logged out front page in that order, 0 hides one. With none chosen the most recently pushed are shown.

{{range $d.Public}}{{$rank := index $d.Ranks .ID}}{{end}}
{{.Path}} {{.Description}}
{{end}} {{if eq $d.Section "storage"}}

Quota

For example 500M or 2G, 0 for no limit. A push that would go over it is refused before anything is written.

Usage

{{range $d.Owners}}{{else}}{{end}}
~{{.Name}}{{size .Used}}{{if $d.Quota}}{{.Pct}}% of {{$d.QuotaText}}{{end}}
No repositories yet.
{{end}} {{end}}