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

Forums

{{range .Body.Categories}}

{{.Name}}

    {{range $f := .Forums}}
  1. {{$f.Area.Name}}

    {{if $f.Area.Description}}
    {{$f.Area.Description}}
    {{end}}
    • {{num $f.Topics}} {{if eq $f.Topics 1}}Topic{{else}}Topics{{end}}
    • {{num $f.Area.Messages}} {{if eq $f.Area.Messages 1}}Post{{else}}Posts{{end}}
    {{with $f.Last}} {{template "avatar" (av .From "mini")}} {{else}}
    No posts here yet
    {{end}}
  2. {{end}}
{{else}}

There are no forums open to you yet.{{if not .User}} Sign in to see more.{{end}}

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