{{define "title"}}Forums{{end}} {{define "content"}}

Forums

To Do
{{if .CurrentUser.IsAdmin}} {{end}}
{{$Root := .}} {{range .Categories}}

{{.Category}}

{{if eq (len .Forums) 0}} There are no forums under this category. {{if not $Root.CurrentUser.Explicit}}Your content filters (non-explicit) may be hiding some forums.{{end}} {{else}} {{range .Forums}} {{$Stats := $Root.ForumMap.Get .ID}}

{{.Title}}

{{if .Description}} {{ToMarkdown .Description}} {{else}} No description {{end}}
{{if .Explicit}} Explicit {{end}} {{if .Privileged}} Privileged {{end}}

Latest Post

{{if $Stats.RecentThread}} {{$Stats.RecentThread.Title}} by {{$Stats.RecentThread.Comment.User.Username}}
Last updated {{SincePrettyCoarse $Stats.RecentThread.UpdatedAt}} ago
{{else}} No posts found. {{end}}

Topics

{{if $Stats}} {{$Stats.Threads}} {{else}} err {{end}}

Posts

{{if $Stats}} {{$Stats.Posts}} {{else}} err {{end}}

Users

{{if $Stats}} {{$Stats.Users}} {{else}} err {{end}}
{{end}} {{end}}
{{end}} {{end}}