This repository has been archived on 2024-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
sakura/_sakura/templates/misaki/forum/forum.tpl
flashwave 6ee42c62b5 Fixed forum index on Misaki
Signed-off-by: Flashwave <me@flash.moe>
2015-11-22 23:35:19 +01:00

19 lines
811 B
Smarty

<div class="forumListing">
{% for forum in forum.forums %}
{% if forum.type == 1 %}
{% if forum.forums|length %}
<div class="forumCategory">
<div class="forumCategoryHead">
<div class="forumCategoryTitle">{% if forum.type != 1 %}Subforums{% else %}<a href="{{ urls.format('FORUM_SUB', [forum.id]) }}">{{ forum.name }}</a>{% endif %}</div>
<div class="forumCategoryDescription">{{ forum.description }}</div>
</div>
{% for forum in forum.forums %}
{% include 'forum/forumEntry.tpl' %}
{% endfor %}
</div>
{% endif %}
{% else %}
{% include 'forum/forumEntry.tpl' %}
{% endif %}
{% endfor %}
</div>