{{if gt .Page 1}}{{end}} {{if ne .LastPage .Page}}{{end}} {{if not .CurrentUser.Loggedin}}{{end}}

{{.Topic.Title}}

- {{.Forum.Name}} {{/** TODO: Does this need to be guarded by a permission? It's only visible in edit mode anyway, which can't be triggered, if they don't have the permission **/}} {{if .CurrentUser.Loggedin}} {{if not .Topic.IsClosed or .CurrentUser.Perms.CloseTopic}} {{if .CurrentUser.Perms.EditTopic}}
{{end}} {{end}} {{end}} {{.Topic.ViewCount}} {{/** TODO: Inline this CSS **/}} {{if .Topic.IsClosed}}🔒︎{{end}}
{{if .Poll.ID}}
{{/**{{template "topic_alt_userinfo.html" .Topic }}**/}}
{{range .Poll.QuickOptions}}
{{.Value}}
{{end}}
{{lang "topic.poll_no_results"}}
{{end}}
{{template "topic_alt_userinfo.html" .Topic }}
{{.Topic.ContentHTML}}
{{if .CurrentUser.Loggedin}} {{if .CurrentUser.Perms.EditTopic}}
{{range .Topic.Attachments}}
{{if .Image}}{{end}} {{.Path}}
{{end}}
{{if .CurrentUser.Perms.UploadFiles}} {{end}}
{{end}}{{end}}
{{if .CurrentUser.Loggedin}} {{if .CurrentUser.Perms.LikeItem}}{{if ne .CurrentUser.ID .Topic.CreatedBy}} {{if .Topic.Liked}}{{else}}{{end}} {{end}}{{end}} {{if not .Topic.IsClosed or .CurrentUser.Perms.CloseTopic}} {{if .CurrentUser.Perms.EditTopic}}{{end}} {{end}} {{if .Topic.Deletable}}{{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}}
{{reltime .Topic.CreatedAt}} {{if .CurrentUser.Perms.ViewIPs}}{{end}}
{{template "topic_alt_posts.html" . }}
{{template "paginator.html" . }} {{if .CurrentUser.Loggedin}} {{if .CurrentUser.Perms.CreateReply}} {{if not .Topic.IsClosed or .CurrentUser.Perms.CloseTopic}} {{template "topic_alt_quick_reply.html" . }} {{end}} {{end}} {{end}}