{{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}}
 
{{.Topic.CreatedByName}} {{if .Topic.Tag}}
{{else}}
{{end}}
{{.Topic.Content}}
{{if .CurrentUser.Loggedin}} {{if .CurrentUser.Perms.LikeItem}}+1{{end}} {{if .CurrentUser.Perms.EditTopic}}Edit{{end}} {{if .CurrentUser.Perms.DeleteTopic}}Delete{{end}} {{if .CurrentUser.Perms.CloseTopic}} {{if .Topic.IsClosed}}Unlock{{else}}Lock{{end}}{{end}} {{if .CurrentUser.Perms.PinTopic}} {{if .Topic.Sticky}}Unpin{{else}}Pin{{end}}{{end}} Report {{end}} {{if .Topic.LikeCount}}{{end}} {{.Topic.CreatedAt}} {{if .CurrentUser.Perms.ViewIPs}}{{.Topic.IPAddress}}{{end}}
{{range .ItemList}}
 
{{.CreatedByName}} {{if .Tag}}
{{else}}
{{end}}
{{if .ActionType}} {{.ActionIcon}} {{.ActionType}} {{else}}
{{.ContentHtml}}
{{if $.CurrentUser.Loggedin}} {{if $.CurrentUser.Perms.LikeItem}}+1{{end}} {{if $.CurrentUser.Perms.EditReply}}Edit{{end}} {{if $.CurrentUser.Perms.DeleteReply}}Delete{{end}} Report {{end}} {{if .LikeCount}}{{end}} {{.CreatedAt}} {{if $.CurrentUser.Perms.ViewIPs}}{{.IPAddress}}{{end}}
{{end}}
{{end}}
{{if .CurrentUser.Perms.CreateReply}}
{{end}}
{{template "footer.html" . }}