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

{{.Topic.Title}}

{{if .Topic.IsClosed}}🔒︎{{end}} {{if .CurrentUser.Perms.EditTopic}} {{end}}

{{.Topic.Content}}

{{.Topic.CreatedByName}}   {{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}} {{if .Topic.LikeCount}}{{end}} {{if .Topic.Tag}}{{.Topic.Tag}}{{else}}{{.Topic.Level}}{{end}}
{{range .ItemList}}{{if .ActionType}}
{{.ActionIcon}} {{.ActionType}}
{{else}}

{{.ContentHtml}}

{{.CreatedByName}}   {{if $.CurrentUser.Perms.LikeItem}}{{end}} {{if $.CurrentUser.Perms.EditReply}}{{end}} {{if $.CurrentUser.Perms.DeleteReply}}{{end}} {{if $.CurrentUser.Perms.ViewIPs}}{{end}} {{if .LikeCount}}{{end}} {{if .Tag}}{{.Tag}}{{else}}{{.Level}}{{end}}
{{end}}{{end}}
{{if .CurrentUser.Perms.CreateReply}}
{{end}}
{{template "footer.html" . }}