{% from 'attachments/_attachments.html' import render_attachments as _render_attachments %} {% macro render_attachments(category) %} {%- set can_manage = category.can_manage(session.user) -%} {%- if category.attachment_count or can_manage %}

{% trans %}Materials{% endtrans %}

{% if can_manage %}
{% endif %}
{{ _render_attachments(category.attached_items, linked_object=category, management=false) }} {% endif -%} {% endmacro %} {% macro render_managers(managers) %} {%- if managers %}

{% trans %}Managers{% endtrans %}

{% endif -%} {% endmacro %} {% macro render_news(news_list, tzinfo) %} {%- if news_list %}

{% trans %}News{% endtrans %} {% trans %}more...{% endtrans %}

{% endif -%} {% endmacro %} {% macro render_upcoming_events(upcoming_events, tzinfo, happening_now) %} {%- if upcoming_events %}

{% trans %}Upcoming events{% endtrans %}

{% endif -%} {% endmacro %}