{{define "index.html"}}{{template "head" .}} {{$st := .Body.Stats}}

{{if .User}}Last visit was: {{subtime .User.LastLogin}}
{{end}}It is currently {{subtime .Now}}

{{range .Body.Categories}}
{{else}}
There are no forums open to you yet.
{{end}} {{if not .User}}

Login{{if .Register}}  •  Register{{end}}

{{end}}

Who is online

In total there {{if eq (len .Body.Online) 1}}is 1 user{{else}}are {{len .Body.Online}} users{{end}} online on the BBS, by any line.
Registered users: {{range $i, $n := .Body.Online}}{{if $i}}, {{end}}{{$n.User}}{{else}}No registered users{{end}}

Statistics

Total posts {{num $st.Posts}} • Total topics {{num $st.Topics}} • Total members {{num $st.Members}}{{with $st.Newest}} • Our newest member {{.Name}}{{end}}

{{template "foot" .}}{{end}}