{{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.Loggedin}} {{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 {{if .CurrentUser.Perms.ViewIPs}}{{.Topic.IpAddress}}{{end}} {{end}} {{.Topic.CreatedAt}} {{if .Topic.LikeCount}}{{.Topic.LikeCount}} up{{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 {{if $.CurrentUser.Perms.ViewIPs}}{{.IpAddress}}{{end}} {{end}} {{.CreatedAt}} {{if .LikeCount}}{{.LikeCount}} up{{end}}
{{end}}
{{end}}
{{if .CurrentUser.Perms.CreateReply}}
{{end}}
{{template "footer.html" . }}