28 lines
1.1 KiB
Twig
28 lines
1.1 KiB
Twig
{% extends 'forum/master.twig' %}
|
|
{% from 'macros.twig' import container_title %}
|
|
{% from 'forum/macros.twig' import forum_category_listing %}
|
|
|
|
{% set title = 'Forum Listing' %}
|
|
{% set canonical_url = url('forum-index') %}
|
|
|
|
{% block content %}
|
|
{% if not forum_empty %}
|
|
{% for category in forum_categories %}
|
|
{{ forum_category_listing(category) }}
|
|
{% endfor %}
|
|
|
|
{% if forum_show_mark_as_read %}
|
|
<div class="container forum__actions">
|
|
<button class="input__button forum__actions__button" type="button" data-method="POST" data-url="{{ url('forum-mark-as-read', { recursive: true }) }}" data-disable-with="Marking as read..." data-with-csrf="1" data-refresh-on-success="1">Mark All Read</button>
|
|
</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 %}
|