{{template "header.html" . }} {{if gt .Page 1}}
<
{{end}} {{if ne .LastPage .Page}}
>
{{end}}
{{.Topic.Title}} {{if .Topic.Is_Closed}}🔒︎{{end}} {{if .CurrentUser.Perms.EditTopic}} {{if .CurrentUser.Perms.CloseTopic}}{{end}} {{end}}
 
{{.Topic.CreatedByName}} {{if .Topic.Tag}}
{{else}}
{{end}}
{{.Topic.Content}}
{{if .CurrentUser.Perms.LikeItem}}+1{{end}} {{if .CurrentUser.Perms.EditTopic}}Edit{{end}} {{if .CurrentUser.Perms.DeleteTopic}}Delete{{end}} {{if .CurrentUser.Perms.PinTopic}} {{if .Topic.Sticky}}Unpin{{else}}Pin{{end}}{{end}} Report {{/* Element Queries might help with having to use JS. Who knows when or *if* the W3C will standardise it */}} {{if .CurrentUser.Perms.ViewIPs}}{{.Topic.IpAddress}}{{end}} {{if .Topic.LikeCount}}{{.Topic.LikeCount}} up{{end}}
{{range .ItemList}}
 
{{.CreatedByName}} {{if .Tag}}
{{else}}
{{end}}
{{if .ActionType}} {{.ActionIcon}} {{.ActionType}} {{else}}
{{.ContentHtml}}
{{if $.CurrentUser.Perms.LikeItem}}+1{{end}} {{if $.CurrentUser.Perms.EditReply}}Edit{{end}} {{if $.CurrentUser.Perms.DeleteReply}}Delete{{end}} Report {{if $.CurrentUser.Perms.ViewIPs}}{{.IpAddress}}{{end}} {{if .LikeCount}}{{.LikeCount}} up{{end}}
{{end}}
{{end}}
{{if .CurrentUser.Perms.CreateReply}}
{{end}} {{template "footer.html" . }}