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

{{.Topic.Title}}

{{/** TODO: Inline this CSS **/}} {{if .Topic.IsClosed}}🔒︎{{end}} {{if .CurrentUser.Perms.EditTopic}} {{end}}
{{if .Poll.ID}}
{{end}}
 
{{if .Topic.Tag}}
{{else}}
{{end}}
{{.Topic.ContentHTML}}
{{if .CurrentUser.Loggedin}} {{if .CurrentUser.Perms.LikeItem}}{{end}} {{if .CurrentUser.Perms.EditTopic}}{{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}}
{{if .Topic.LikeCount}}{{end}} {{.Topic.RelativeCreatedAt}} {{if .CurrentUser.Perms.ViewIPs}}{{end}}
{{range .ItemList}}
 
{{if .Tag}}
{{else}}
{{end}}
{{if .ActionType}} {{.ActionType}} {{else}} {{/** TODO: We might end up with
s in the inline editor, fix this **/}}
{{.ContentHtml}}
{{if $.CurrentUser.Loggedin}} {{if $.CurrentUser.Perms.LikeItem}}{{end}} {{if $.CurrentUser.Perms.EditReply}}{{end}} {{if $.CurrentUser.Perms.DeleteReply}}{{end}} {{if $.CurrentUser.Perms.ViewIPs}}{{end}} {{end}}
{{if .LikeCount}}{{end}} {{.RelativeCreatedAt}} {{if $.CurrentUser.Perms.ViewIPs}}{{end}}
{{end}}
{{end}}
{{if .CurrentUser.Perms.CreateReply}}
 
{{if .CurrentUser.Tag}}
{{else}}
{{end}}
{{if .CurrentUser.Perms.UploadFiles}}
{{end}}
{{end}}
{{template "footer.html" . }}