{{define "title"}}Newest Posts - Forums{{end}} {{define "content"}}

Forums

Newest Posts

{{$Root := .}}
Found {{.Pager.Total}} posts (page {{.Pager.Page}} of {{.Pager.Pages}})
{{SimplePager .Pager}}
{{range .RecentPosts}} {{$User := .Thread.Comment.User}} {{end}}
{{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}}
{{if and $Stats.RecentPost (not (eq $Stats.RecentPost.ID $Stats.RecentThread.CommentID))}} Last comment by {{$Stats.RecentPost.User.Username}} {{end}} {{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}}