{% extends 'forums/base.html' %} {% load bootstrap %} {% load guardian_tags %} {% 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:

Permissions on this {% if 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, u_perms in users_with_perms.items %}
  • {{ u.first_name }} {{ u.last_name }}: {{ u_perms }}
  • {% endfor %}
{% 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 %}