{% extends "richie/fullwidth.html" %} {% load cms_tags extra_tags i18n pagination_tags thumbnail %} {% block head_title %} {% page_attribute "page_title" as category_title %} {% blocktrans with category_title=category_title %}{{ category_title }} - Category{% endblocktrans %} {% endblock head_title %} {% block meta_html_default %} {% if not current_page|is_empty_placeholder:"description" %} {% endif %} {% endblock meta_html_default %} {% block meta_rdfa_context %} {% get_placeholder_plugins "logo" as og_image_plugins %} {% if og_image_plugins.0 %} {% thumbnail og_image_plugins.0.picture 200x200 replace_alpha='#FFFFFF' crop upscale subject_location=og_image_plugins.0.picture.subject_location as thumb %} {% endif %} {% if not current_page|is_empty_placeholder:"description" %} {% endif %} {% endblock meta_rdfa_context %} {% block body_rdfa %} vocab="https://schema.org/" typeof="DefinedTerm"{% endblock body_rdfa %} {% block content %}{% spaceless %} {% with category=current_page.category header_level=2 %} {% if category %}
{% placeholder_as_plugins "banner" as banner_plugins or %}
{% trans "Banner" %}
{% endplaceholder_as_plugins %} {% blockplugin banner_plugins.0 %} {% endblockplugin %}

{% placeholder_as_plugins "icon" as icon_plugins %} {% blockplugin icon_plugins.0 %} {% endblockplugin %} {% render_model current_page "title" %}

{% placeholder "description" %}
{% with children_categories=category.get_children_categories %} {% if children_categories %}

{% trans "Sub categories" %}

{% for child_category in children_categories %} {% include "courses/cms/fragment_category_glimpse.html" with category=child_category category_variant="glimpse" header_level=3 %} {% endfor %}
{% endif %} {% endwith %} {% with courses=category.get_courses %} {% if courses %} {% autopaginate courses GLIMPSE_PAGINATION_COURSES as object_list %}

{% trans "Related courses" %}

{% for course in page_obj.object_list %} {% include "courses/cms/fragment_course_glimpse.html" with header_level=3 %} {% endfor %} {% if paginator.num_pages > 1 %} {% include "richie/pagination.html" with label=_("Courses pagination") %} {% endif %}
{% endif %} {% endwith %} {% with organizations=category.get_organizations %} {% if organizations %} {% autopaginate organizations GLIMPSE_PAGINATION_ORGANIZATIONS %}

{% trans "Related organizations" %}

{% for organization in page_obj.object_list %} {% include "courses/cms/fragment_organization_glimpse.html" with header_level=3 %} {% endfor %} {% if paginator.num_pages > 1 %} {% include "richie/pagination.html" with label=_("Related organizations pagination") %} {% endif %}
{% endif %} {% endwith %} {% with blogposts=category.get_blogposts|order_by:"-extended_object__publication_date" %} {% if blogposts %} {% autopaginate blogposts GLIMPSE_PAGINATION_BLOGPOSTS %}

{% trans "Related blogposts" %}

{% for blogpost in page_obj.object_list %} {% include "courses/cms/fragment_blogpost_glimpse.html" with header_level=3 %} {% endfor %} {% if paginator.num_pages > 1 %} {% include "richie/pagination.html" with label=_("Related blogposts pagination") %} {% endif %}
{% endif %} {% endwith %}
{% if not current_page|is_empty_placeholder:"additional_information" and not current_page.reverse_id %}

{% trans 'Configure this page id to show this additional information on all related course pages' %}

{% endif %} {% placeholder "additional_information" or %} {% if request.toolbar.edit_mode_active %}

{% trans 'Enter additional information for this category' %}

{% endif %} {% endplaceholder %}
{% with persons=category.get_persons %} {% if persons %} {% autopaginate persons GLIMPSE_PAGINATION_PERSONS %}

{% trans "Related persons" %}

{% for person in page_obj.object_list %} {% include "courses/cms/fragment_person_glimpse.html" with header_level=3 %} {% endfor %} {% if paginator.num_pages > 1 %} {% include "richie/pagination.html" with label=_("Related persons pagination") %} {% endif %}
{% endif %} {% endwith %}
{% else %} {% include "courses/cms/fragment_error_detail_template_banner.html" with model="category" %} {% endif %} {% endwith %} {% endspaceless %}{% endblock content %}