<div class="head">Forums{% if board.viewforum %} / {{ board.forums[0].forum.forum_name }}{% endif %}</div>
<table class="forumList">
<tbody>
{% for category in board.forums %}
{% include 'forum/forumEntry.tpl' %}
{% endfor %}
</tbody>
</table>
{% if board.viewforum and not board.forums[0].forum.forum_type %}
<a href="/forum/{{ board.forums[0].forum.forum_id }}/new" class="forumbtn"><span class="fa fa-pencil-square-o"></span> New Thread</a>
{% if board.topics|length %}
<table class="topicList">
<thead>
<tr>
<th></th>
<th>Topic</th>
<th>Author</th>
<th>Last post</th>
</tr>
</thead>
<tfoot>
</tfoot>
{% for topic in board.topics %}
{% include 'forum/topicEntry.tpl' %}
{% else %}
<h1 class="stylised" style="margin: 2em auto; text-align: center;">There are no posts in this forum!</h1>
{% endif %}