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/templates/misaki/forum/forum.twig

20 lines
808 B
Twig
Raw Normal View History

<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="{{ route('forums.forum', forum.id) }}">{{ forum.name }}</a>{% endif %}</div>
<div class="forumCategoryDescription">{{ forum.description }}</div>
</div>
{% for forum in forum.forums %}
2016-01-04 20:14:09 +00:00
{% include 'forum/forumEntry.twig' %}
{% endfor %}
</div>
{% endif %}
{% else %}
2016-01-04 20:14:09 +00:00
{% include 'forum/forumEntry.twig' %}
{% endif %}
{% endfor %}
</div>