{{template "header.html" . }}

{{lang "topics_head"}}

{{if ne .CurrentUser.ID 0}}
{{if .ForumList}}
{{/** TODO: Add a permissions check for this **/}}
{{else}}
{{end}}
{{end}}
{{if ne .CurrentUser.ID 0}} {{/** TODO: Hide these from unauthorised users? **/}}
{{lang "topic_list.what_to_do"}}
{{if .ForumList}} {{/** TODO: Have a seperate forum list for moving topics? Maybe an AJAX forum search compatible with plugin_guilds? **/}} {{/** TODO: Add ARIA attributes for this **/}} {{end}} {{end}}
{{range .TopicList}}{{template "topics_topic.html" . }}{{else}}
{{lang "topics_no_topics"}}{{if .CurrentUser.Perms.CreateTopic}} {{lang "topics_start_one"}}{{end}}
{{end}}
{{if gt .LastPage 1}} {{template "paginator.html" . }} {{end}}
{{template "footer.html" . }}