{{define "index.html"}}{{template "head" .}} {{$st := .Body.Stats}} {{range $i, $c := .Body.Categories}}

{{$c.Name}}

{{range $j, $f := $c.Forums}} {{end}}
ForumTopicsPostsLast post
{{if $f.Unread}}New posts{{end}}

{{$f.Area.Name}}

{{if $f.Area.Description}}
{{$f.Area.Description}}
{{end}}
{{num $f.Topics}} {{num $f.Area.Messages}} {{with $f.Last}}{{stamp .Created}} by {{.From}}{{else}}Never{{end}}
{{end}}

Board information

Board statistics
Total number of registered users: {{num $st.Members}}
Total number of topics: {{num $st.Topics}}
Total number of posts: {{num $st.Posts}}
User information
{{with $st.Newest}}
Newest registered user: {{.Name}}
{{end}}
Registered users online: {{len .Body.Online}}
Guests online: 0
{{if .Body.Online}}
Online: 
{{range $i, $n := .Body.Online}}
{{if $i}}, {{end}}{{$n.User}}
{{end}}
{{end}}
{{template "foot" .}}{{end}}