{{define "index.html"}}{{template "head" .}} {{$st := .Body.Stats}}
{{if .User}}You last visited on {{longdate .User.LastLogin}}
{{end}}The time now is {{longdate .Now}}

{{template "nav" .}}
Search the posts{{if .User}}
View your posts{{end}}
{{range .Body.Categories}} {{range $f := .Forums}} {{end}} {{else}} {{end}}
 Forum  Topics  Posts  Last Post 
{{.Name}} 
{{$f.Area.Name}}
{{if $f.Area.Description}}{{$f.Area.Description}}{{end}}
{{num $f.Topics}} {{num $f.Area.Messages}} {{with $f.Last}}{{subtime .Created}}
{{.From}} {{else}}No Posts{{end}}
There are no forums open to you yet.
All times are server time
Who is Online
Our users have posted a total of {{num $st.Posts}} articles
We have {{num $st.Members}} registered users
{{with $st.Newest}}The newest registered user is {{.Name}}{{end}}
In total there {{if eq (len .Body.Online) 1}}is 1 user{{else}}are {{len .Body.Online}} users{{end}} online
Registered Users: {{range $i, $n := .Body.Online}}{{if $i}}, {{end}}{{$n.User}}{{else}}None{{end}}

This data is based on the callers on the BBS just now, by any line.

{{if not .User}}
Log in
Username:    Password:    
{{end}}
New posts    No new posts
{{template "foot" .}}{{end}}