{{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}} change |
| Mail | {{if $d.Mail}}configured{{else}}not configured, resets go through gitpocket passwd{{end}} |
{{end}}
Newest accounts
{{range $d.Recent}}| ~{{.Name}} | {{if .Org}}organisation{{else if .Admin}}admin{{end}}{{if .Banned}} banned{{end}} | {{ago .Created}} |
{{end}}
{{end}}
{{if eq $d.Section "people"}}
People
{{range $d.Accounts}}
| ~{{.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}}{{end}} |
{{else}}| Nobody matches. |
{{end}}
{{end}}
{{if eq $d.Section "signup"}}
Registration
Invites
{{if $d.Invites}}{{range $d.Invites}}https://{{$.Host}}/register?invite={{.}} | |
{{end}}
{{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}}
| {{.Path}} |
{{.Description}} |
|
{{end}}
{{end}}
{{if eq $d.Section "storage"}}
Quota
Usage
{{range $d.Owners}}| ~{{.Name}} | {{size .Used}} | {{if $d.Quota}}{{.Pct}}% of {{$d.QuotaText}}{{end}} |
{{else}}| No repositories yet. |
{{end}}
{{end}}
{{end}}