{% extends "core/base.jinja" %} {% from 'forum/macros.jinja' import display_forum, display_breadcrumb, display_topic, display_search_bar %} {% block title %} {{ forum }} {% endblock %} {% block content %} {{ display_breadcrumb(forum) }}

{{ forum.name }}

{% if user.is_com_admin or user.is_in_group(pk=settings.SITH_GROUP_FORUM_ADMIN_ID) or user.can_edit(forum) %} {% trans %}New forum{% endtrans %}
{% endif %} {% if not forum.is_category %} {% trans %}New topic{% endtrans %} {% endif %} {{ display_search_bar(request) }}

{% if forum.children.exists() %}
{% trans %}Title{% endtrans %}
{% trans %}Topics{% endtrans %}
{% trans %}Last message{% endtrans %}
{{ display_forum(forum, user, True) }} {% for f in forum.children.all().select_related("_last_message__author", "_last_message__topic") %} {{ display_forum(f, user) }} {% endfor %} {% endif %} {% if topics %}
{% trans %}Title{% endtrans %}
{% trans %}Author{% endtrans %}
{% trans %}Messages{% endtrans %}
{% trans %}Last message{% endtrans %}
{% for t in topics %} {{ display_topic(t, user) }} {% endfor %}

{% for p in topics.paginator.page_range %} {{ p }} {% endfor %}

{% endif %}
{% endblock %}