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

{{.Title}}

{{if ne .CurrentUser.ID 0}} {{if .CurrentUser.Perms.CreateTopic}}
{{/** TODO: Add a permissions check for this **/}}
{{else}}
{{end}}
{{end}}
{{if ne .CurrentUser.ID 0}}
What do you want to do with these 18 topics?
{{if .CurrentUser.Perms.CreateTopic}} {{end}} {{end}}
{{range .ItemList}}
{{.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}}
{{.PostCount}}
{{.LikeCount}}
{{.LastUser.Name}}
{{.RelativeLastReplyAt}}
{{else}}
There aren't any topics in this forum yet.{{if .CurrentUser.Perms.CreateTopic}} Start one?{{end}}
{{end}}
{{template "footer.html" . }}