{{define "title"}}{{.Forum.Title}}{{end}} {{define "content"}}

{{.Forum.Title}}

{{if .FeatureUserForumsEnabled}}
{{InputCSRF}} {{if .IsForumSubscribed}} {{else}} {{end}}
{{end}}
{{$Root := .}}
{{if or (eq .Forum.OwnerID .CurrentUser.ID) (.CurrentUser.HasAdminScope "admin.forum.manage")}} {{end}} {{if or .CurrentUser.IsAdmin (not .Forum.Privileged) (eq .Forum.OwnerID .CurrentUser.ID)}} New Thread {{end}}

Found {{.Pager.Total}} post{{Pluralize64 .Pager.Total}} on this forum (page {{.Pager.Page}} of {{.Pager.Pages}}).

{{if .Forum.Privileged}}
Only moderators may create new threads on this forum. You may be able to reply to threads here.
{{end}}
{{SimplePager .Pager}}
{{if not .Threads}}

There are no posts yet on this forum. {{if not .Forum.Privileged}} Why not start the first thread? {{end}}

{{end}} {{$Root := .}}
{{range .Threads}} {{$Stats := $Root.ThreadMap.Get .ID}}

{{if .Pinned}}{{end}} {{or .Title "Untitled"}}

{{TrimEllipses .Comment.Message 256}}

{{if .Pinned}} Pinned {{end}} {{if .PollID}} Poll {{end}} {{if .Explicit}} NSFW {{end}} {{if .NoReply}} No Reply {{end}} Updated {{SincePrettyCoarse .UpdatedAt}} ago

Replies

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

Views

{{if $Stats}} {{$Stats.Views}} {{else}} err {{end}}
{{end}}
{{SimplePager .Pager}}
Created on: {{.Forum.CreatedAt.Format "Jan _2 2006"}}
{{if .Forum.Explicit}} Explicit {{end}} {{if .Forum.Privileged}} Privileged {{end}} {{if .Forum.PermitPhotos}} Photos {{end}} {{if .Forum.Private}} Private {{end}}
{{if .Forum.OwnerID}} {{template "avatar-16x16" .Forum.Owner}} {{.Forum.Owner.Username}} (owner) {{end}} {{range .ForumModerators}} {{template "avatar-16x16" .}} {{.Username}} {{end}} {{if not .Forum.OwnerID}}
This forum's owner has deleted their account, and this forum is in need of a new owner. You may petition to adopt this forum.
{{end}}
{{if not .Forum.OwnerID}} {{end}}
{{end}}