{{template "header.html" . }} {{if gt .Page 1}}
{{end}} {{if ne .LastPage .Page}}
{{end}}

{{.Topic.Title}}

/ {{.Forum.Name}} {{/** TODO: Does this need to be guarded by a permission? It's only visible in edit mode anyway, which can't be triggered, if they don't have the permission **/}} {{if .CurrentUser.Loggedin}} {{if not .Topic.IsClosed or .CurrentUser.Perms.CloseTopic}} {{if .CurrentUser.Perms.EditTopic}} {{end}} {{end}} {{end}} {{.Topic.ViewCount}} {{/** TODO: Inline this CSS **/}} {{if .Topic.IsClosed}}🔒︎{{end}}
{{if .Poll.ID}}
{{/** TODO: De-dupe userinfo with a common template **/}}
 
{{if .Topic.Tag}}
{{else}}
{{end}}
{{range .Poll.QuickOptions}}
{{.Value}}
{{end}}
{{end}}
 
{{if .Topic.Tag}}
{{else}}
{{end}}
{{.Topic.ContentHTML}}
{{if .CurrentUser.Loggedin}}{{if .CurrentUser.Perms.EditTopic}} {{if .Topic.Attachments}}
{{range .Topic.Attachments}}
{{if .Image}}{{end}} {{.Path}}
{{end}}
{{if .CurrentUser.Perms.UploadFiles}} {{end}}
{{end}} {{end}}{{end}}
{{if .CurrentUser.Loggedin}} {{if .CurrentUser.Perms.LikeItem}}{{end}} {{if not .Topic.IsClosed or .CurrentUser.Perms.CloseTopic}} {{if .CurrentUser.Perms.EditTopic}}{{end}} {{end}} {{if .CurrentUser.Perms.DeleteTopic}}{{end}} {{if .CurrentUser.Perms.CloseTopic}} {{if .Topic.IsClosed}}{{else}}{{end}}{{end}} {{if .CurrentUser.Perms.PinTopic}} {{if .Topic.Sticky}}{{else}}{{end}}{{end}} {{if .CurrentUser.Perms.ViewIPs}}{{end}} {{end}}
{{template "topic_alt_posts.html" . }}
{{if gt .LastPage 1}} {{template "paginator.html" . }} {{end}} {{if .CurrentUser.Loggedin}} {{if .CurrentUser.Perms.CreateReply}} {{if not .Topic.IsClosed or .CurrentUser.Perms.CloseTopic}}
 
{{if .CurrentUser.Tag}}
{{else}}
{{end}}
{{if .CurrentUser.Perms.UploadFiles}}
{{end}}
{{end}} {{end}} {{end}}
{{template "footer.html" . }}