2018-08-15 01:12:58 +00:00
|
|
|
{% extends 'forum/master.twig' %}
|
2018-10-22 19:53:21 +00:00
|
|
|
{% from 'macros.twig' import container_title %}
|
2018-08-15 01:12:58 +00:00
|
|
|
{% from 'forum/macros.twig' import forum_category_listing %}
|
2018-05-18 01:20:27 +00:00
|
|
|
|
|
|
|
{% set title = 'Forum Listing' %}
|
|
|
|
{% set canonical_url = '/forum/' %}
|
|
|
|
|
|
|
|
{% block content %}
|
2018-05-24 00:57:13 +00:00
|
|
|
{% if not forum_empty %}
|
|
|
|
{% for category in forum_categories %}
|
|
|
|
{% if category.forum_children > 0 %}
|
2018-12-31 02:22:13 +00:00
|
|
|
{{ forum_category_listing(
|
|
|
|
category.forum_subforums,
|
|
|
|
category.forum_name,
|
|
|
|
category.forum_colour,
|
|
|
|
category.forum_id == constant('MSZ_FORUM_ROOT')
|
|
|
|
? ''
|
|
|
|
: 'f' ~ category.forum_id
|
|
|
|
) }}
|
2018-05-24 00:57:13 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2018-05-18 01:20:27 +00:00
|
|
|
|
2019-01-09 20:22:54 +00:00
|
|
|
{% if current_user is defined %}
|
|
|
|
<div class="container forum__actions">
|
2019-01-24 20:54:24 +00:00
|
|
|
<a href="{{ url('forum-mark-global') }}" class="input__button forum__actions__button">Mark All Read</a>
|
2019-01-09 20:22:54 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2018-05-24 00:57:13 +00:00
|
|
|
{% else %}
|
|
|
|
<div class="container">
|
2018-12-27 02:59:57 +00:00
|
|
|
{{ container_title('<i class="fas fa-comment-slash fa-fw"></i> Forums') }}
|
|
|
|
|
2018-05-24 00:57:13 +00:00
|
|
|
<div class="container__content">
|
2019-04-30 20:55:12 +00:00
|
|
|
<p>There are currently no visible forums.</p>
|
2018-05-24 00:57:13 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2018-05-18 01:20:27 +00:00
|
|
|
{% endblock %}
|