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

{{.Title}}

{{if .CurrentUser.Loggedin}}
{{if .CurrentUser.Perms.CreateTopic}}
{{/** TODO: Add a permissions check for this **/}}
{{else}}
{{end}}
{{end}}
{{if .CurrentUser.Loggedin}}
{{if .CurrentUser.Perms.CreateTopic}} {{end}} {{end}}
{{range .ItemList}}
{{.Creator.Name}}'s Avatar {{.Title}}
{{.Creator.Name}} {{/** TODO: Avoid the double '|' when both .IsClosed and .Sticky are set to true. We could probably do this with CSS **/}} {{if .IsClosed}} | 🔒︎{{end}} {{if .Sticky}} | 📍︎{{end}}
{{/** TODO: Phase this out of Cosora and remove it **/}}
{{.PostCount}}
{{.LikeCount}}
{{.PostCount}} {{lang "topic_list.replies_suffix"}} {{.LikeCount}} {{lang "topic_list.likes_suffix"}} {{.ViewCount}} {{lang "topic_list.views_suffix"}}
{{.LastUser.Name}}'s Avatar {{.LastUser.Name}}
{{.RelativeLastReplyAt}}
{{else}}
{{lang "forum_no_topics"}}{{if .CurrentUser.Loggedin}}{{if .CurrentUser.Perms.CreateTopic}} {{lang "forum_start_one"}}{{end}}{{end}}
{{end}}
{{if gt .LastPage 1}} {{template "paginator.html" . }} {{end}}
{{template "footer.html" . }}