{% extends 'categories/display/base.html' %} {% from 'categories/display/category_list.html' import category_list %} {% from 'categories/display/event_list.html' import event_list %} {% from 'categories/display/sidebar.html' import render_attachments, render_managers %} {% from 'message_box.html' import message_box %} {% block content %}
{% if category.has_logo %} {% endif %} {% block category_description %}
{{ category.description }}
{% endblock %}
{% if pending_event_moves %} {% call message_box('info') %} {%- set link_start -%} {%- endset -%} {%- set link_end -%} {%- endset -%} {% trans count=pending_event_moves %} There is {{ count }} event move request {{ link_start }}pending moderation{{ link_end }}. {% pluralize %} There are {{ count }} event move requests {{ link_start }}pending moderation{{ link_end }}. {% endtrans %} {% endcall %} {% endif %} {% if not category.children and not events_by_month and not past_event_count and not future_event_count %} {% if has_hidden_events %} {% call message_box('highlight', icon=true) %}
{% trans %}Some events in this category have been hidden.{% endtrans %}
{% endcall %} {% else %} {% call message_box('info', icon=false) %} {% trans %}This category is empty.{% endtrans %} {% endcall %} {% endif %} {% else %} {% block category_content %} {% if not is_flat %} {{ category_list(category) }} {% else %} {% call message_box('info', icon=false) %} {% trans %}Displaying all the events from subcategories.{% endtrans %} {% trans %}Go back to single category view.{% endtrans %} {% endcall %} {% endif %} {{ event_list(events_by_month=events_by_month, format_event_date=format_event_date, is_recent=is_recent, happening_now=happening_now, category=category, future_event_count=future_event_count, past_event_count=past_event_count, future_threshold=future_threshold, past_threshold=past_threshold, show_future_events=show_future_events, show_past_events=show_past_events, has_hidden_events=has_hidden_events, is_flat=is_flat) }} {% endblock %} {% endif %} {% endblock %} {% block sidebar -%} {% block sidebar_managers %} {{- render_managers(managers) -}} {% endblock %} {% block sidebar_attachments %} {{- render_attachments(category) -}} {% endblock %} {{ template_hook('category-sidebar', category=category) }} {%- endblock %}