{% extends 'forums/base.html' %} {% load bootstrap %} {% load guardian_tags %} {% load restructuredtext %} {% block breadcrumb_items %} {{ block.super }} {% if forum.meeting %}Meeting{% else %}Forum{% endif %} Details {% endblock %} {% load scipost_extras %} {% block pagetitle %}: {% if forum.meeting %}Meeting{% else %}Forum{% endif %} details{% endblock pagetitle %} {% get_obj_perms request.user for forum as "user_perms" %} {% block content %}

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

{% 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 perms.forums.add_forum or "can_change_forum" in user_perms %}

Admin actions:

Permissions on this {% if forum.meeting %}Meeting{% else %}Forum{% endif %} instance

Grant permissions to a new group

Groups with permissions [click on the Group's name to manage permissions]:

    {% for group in groups_with_perms %} {% get_obj_perms group for forum as "group_perms" %}
  • {{ group.name }}: {{ group_perms }}
  • {% empty %}
  • No group has permissions on this Forum
  • {% endfor %}

Users with permissions:

    {% for u in users_with_perms %} {% get_obj_perms u for forum as "u_perms" %}
  • {{ u.first_name }} {{ u.last_name }}: {{ u_perms }}
  • {% endfor %}
{% endif %}

Table of Contents

Description

{{ forum.description|restructuredtext }}
{% if forum.meeting %}

Preamble

{{ forum.meeting.preamble|restructuredtext }}

Motions

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

Posts

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

Minutes

{{ forum.meeting.minutes|restructuredtext }}
{% endif %} {% endblock content %}