misuzu/templates/forum/index.twig

29 lines
951 B
Twig
Raw Normal View History

2022-09-13 13:14:49 +00:00
{% extends 'forum/master.twig' %}
{% from 'macros.twig' import container_title %}
{% from 'forum/macros.twig' import forum_category_listing %}
{% set title = 'Forum Listing' %}
2023-08-28 01:17:34 +00:00
{% set canonical_url = url('forum-index') %}
2022-09-13 13:14:49 +00:00
{% block content %}
{% if not forum_empty %}
{% for category in forum_categories %}
2023-08-28 01:17:34 +00:00
{{ forum_category_listing(category) }}
2022-09-13 13:14:49 +00:00
{% endfor %}
{% if forum_show_mark_as_read %}
2022-09-13 13:14:49 +00:00
<div class="container forum__actions">
<a href="{{ url('forum-mark-global') }}" class="input__button forum__actions__button">Mark All Read</a>
2022-09-13 13:14:49 +00:00
</div>
{% endif %}
{% else %}
<div class="container">
{{ container_title('<i class="fas fa-comment-slash fa-fw"></i> Forums') }}
<div class="container__content">
<p>There are currently no visible forums.</p>
</div>
</div>
{% endif %}
{% endblock %}