{% 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 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 %} {{ category_list(category) }} {{ 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) }} {% endblock %} {% endif %} {% endblock %} {% block sidebar -%} {{- render_managers(managers) -}} {{- render_attachments(category) -}} {%- endblock %}