{% extends 'board_base.html' %} {% load i18n %} {% load mptt_tags %} {% load forum_tags %} {% load forum_conversation_tags %} {% load forum_permission_tags %} {% load forum_tracking_tags %} {% load activity_tags %} {% load forum_extras %} {% load crispy_forms_tags %} {% block sub_title %}{{ forum.name }}{% endblock sub_title %} {% block content %}

{{ forum.name }}

{% if sub_forums %}
{% if request.user.is_authenticated %} {% endif %}
{% forum_list sub_forums %} {% endif %} {% if forum.is_forum %}
{% get_permission 'can_add_topic' forum request.user as user_can_add_topic %} {% get_permission 'can_read_forum' forum request.user as user_can_read_forum %} {% if user_can_add_topic %}  {% trans "New topic" %} {% endif %} {% if user_can_read_forum and request.user|is_following:forum %} {% get_follow_object_pk request.user forum as follow_object_pk %} {% if follow_object_pk %}
{% csrf_token %}
{% endif %} {% elif user_can_read_forum and not request.user|is_following:forum %} {% get_content_type forum as forum_ct %} {% follow_form user=request.user content_type=forum_ct.id object_id=forum.id as follow_form %}
{% csrf_token %} {{ follow_form|crispy }}
{% endif %}
{% if topics|length > 0 and request.user.is_authenticated %} {% endif %} {% with "pagination-sm justify-content-end" as pagination_size %} {% include "partials/pagination.html" %} {% endwith %}
{% trans "Announcements" as announcements_title_trans %} {% with topic_list_title=announcements_title_trans topics=announces hide_if_empty=True unread_topics=unread_topics %} {% include "forum_conversation/topic_list.html" %} {% endwith %} {% trans "Topics" as topics_title_trans %} {% with topic_list_title=topics_title_trans unread_topics=unread_topics%} {% include "forum_conversation/topic_list.html" %} {% endwith %}
{% if user_can_add_topic %}  {% trans "New topic" %} {% endif %}
{% if topics|length > 0 and request.user.is_authenticated %} {% endif %} {% with "pagination-sm justify-content-end" as pagination_size %} {% include "partials/pagination.html" %} {% endwith %}
{% endif %} {% endblock content %}