{{template "header.html" . }}

All Topics

{{if ne .CurrentUser.ID 0}} {{if .ForumList}}
{{/** 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 .ForumList}} {{end}} {{end}}
{{range .TopicList}}
{{if .Creator.Avatar}}{{end}} {{.Title}} {{if .ForumName}}{{.ForumName}}{{end}}
{{.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}}
{{if .LastUser.Avatar}}{{end}} {{.LastUser.Name}}
{{.RelativeLastReplyAt}}
{{else}}
There aren't any topics yet.{{if .CurrentUser.Perms.CreateTopic}} Start one?{{end}}
{{end}}
{{template "footer.html" . }}