2022-09-13 13:14:49 +00:00
|
|
|
{% extends 'forum/master.twig' %}
|
|
|
|
{% from 'forum/macros.twig' import forum_category_listing, forum_topic_listing, forum_category_buttons, forum_header, forum_category_tools %}
|
|
|
|
|
|
|
|
{% set title = forum_info.forum_name %}
|
|
|
|
{% set canonical_url = url('forum-category', {
|
|
|
|
'forum': forum_info.forum_id,
|
|
|
|
'page': forum_pagination.page|default(0) > 1 ? forum_pagination.page : 0,
|
|
|
|
}) %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{{ forum_header(forum_info.forum_name, forum_breadcrumbs, true, canonical_url, [
|
|
|
|
{
|
|
|
|
'html': '<i class="far fa-check-circle"></i> Mark as Read',
|
|
|
|
'url': url('forum-mark-single', {'forum': forum_info.forum_id}),
|
2023-08-02 22:12:47 +00:00
|
|
|
'display': forum_show_mark_as_read,
|
2022-09-13 13:14:49 +00:00
|
|
|
'method': 'POST',
|
|
|
|
}
|
|
|
|
]) }}
|
|
|
|
|
|
|
|
{% if forum_may_have_children and forum_info.forum_subforums|length > 0 %}
|
|
|
|
{{ forum_category_listing(forum_info.forum_subforums, 'Forums') }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if forum_may_have_topics %}
|
|
|
|
{% set category_tools = forum_category_tools(forum_info, forum_perms, forum_pagination) %}
|
|
|
|
{{ category_tools }}
|
|
|
|
{{ forum_topic_listing(forum_topics) }}
|
|
|
|
{{ category_tools }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{{ forum_header('', forum_breadcrumbs) }}
|
|
|
|
{% endblock %}
|