{% extends "richie/fullwidth.html" %} {% load cms_tags extra_tags i18n thumbnail %} {% block meta_opengraph_contextuals %} {% endblock meta_opengraph_contextuals %} {% block content %}{% spaceless %} {% with category=current_page.category header_level=2 %}
{% get_placeholder_plugins "banner" as banner_plugins or %}
{% trans "Banner" %}
{% endget_placeholder_plugins %} {% blockplugin banner_plugins.0 %} {% if instance.picture.default_alt_text %}{{ instance.picture.default_alt_text }}{% else %}{% trans 'category banner' %}{% endif %} {% endblockplugin %}

{% get_placeholder_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" %} {% endfor %}
{% endif %} {% endwith %} {% with courses=category.get_courses %} {% if courses %}

{% trans "Related courses" %}

{% for course in courses %} {% if course.extended_object.publisher_is_draft or course.check_publication %} {% include "courses/cms/fragment_course_glimpse.html" %} {% endif %} {% endfor %}
{% endif %} {% endwith %} {% with organizations=category.get_organizations %} {% if organizations %}

{% trans "Related organizations" %}

{% for organization in organizations %} {% if organization.extended_object.publisher_is_draft or organization.check_publication %} {% include "courses/cms/fragment_organization_glimpse.html" %} {% endif %} {% endfor %}
{% endif %} {% endwith %} {% with blogposts=category.get_blogposts %} {% if blogposts %}

{% trans "Related blogposts" %}

{% for blogpost in blogposts %} {% if blogpost.extended_object.publisher_is_draft or blogpost.check_publication %} {% include "courses/cms/fragment_blogpost_glimpse.html" %} {% endif %} {% endfor %}
{% endif %} {% endwith %} {% with persons=category.get_persons %} {% if persons %}

{% trans "Related persons" %}

{% for person in persons %} {% if person.extended_object.publisher_is_draft or person.check_publication %} {% include "courses/cms/fragment_person_glimpse.html" %} {% endif %} {% endfor %}
{% endif %} {% endwith %}
{% endwith %} {% endspaceless %}{% endblock content %}