{# Discussion threads. Expect the following context: - discussions: a list of discussions - subject: the domain object subject of the dicussions It also optionnal texts: - sidetext: add a text on right side - subtext: add a text on the new discussion pane #} {% set threadclass = 'col-sm-9' if sidetext else 'col-sm-12' %}
{% for discussion in discussions %} {% include theme('discussion/item.html') %} {% endfor %}
+

{{ _('Start a new discussion') }}

{% set discussion_length = discussions|rejectattr('closed')|list|length %}
{% if sidetext %}

{{ sidetext }}

{% endif %}