{% extends 'forums/base.html' %} {% load bootstrap %} {% load automarkup %} {% load scipost_extras %} {% block breadcrumb_items %} {{ block.super }} {% if forum.meeting %}Meeting{% else %}Forum{% endif %} Details {% endblock %} {% block pagetitle %}: {% if forum.meeting %}Meeting{% else %}Forum{% endif %} details{% endblock pagetitle %} {% block content %} {% with can_add_forum=perms.forums.add_forum can_change_forum=perms.forums.change_forum meeting=forum.meeting %}

{% if meeting %} {% with context_colors=meeting.context_colors %} {{ context_colors.message }} [{{ meeting.date_from|date:"Y-m-d" }} to {{ meeting.date_until|date:"Y-m-d" }}] {% endwith %}
{% endif %} {{ forum }} {{ forum.cf_nr_posts }} post{{ forum.cf_nr_posts|pluralize }}

{% if forum.parent %}

Parent: {{ forum.parent }}

{% endif %} {% if forum.child_forums.all|length > 0 %}

Descendants: {% for child in forum.child_forums.all %}{{ child }}{% if not forloop.last %}, {% endif %}{% endfor %}

{% endif %} {% if can_change_forum %}

Admin actions:

{% if can_change_forum %}
Permissions on this {% if forum.meeting %}Meeting{% else %}Forum{% endif %} instance (view/manage)
{% endif %}
{% endif %}

Table of Contents

Description

{% automarkup forum.description %}
{% if meeting %}

Preamble

{% automarkup meeting.preamble %}

Motions

{% for motion in forum.motions.all %} {% include 'forums/post_card.html' with forum=forum post=motion.post can_change_forum=can_change_forum %} {% endfor %}
{% endif %}

Posts

{% for post in forum.posts.motions_excluded %} {% include 'forums/post_card.html' with forum=forum post=post can_change_forum=can_change_forum %} {% endfor %}
{% if meeting %}

Minutes

{% automarkup meeting.minutes %}
{% endif %} {% endwith %} {% endblock content %}