{% extends "richie/fullwidth.html" %} {% load cms_tags extra_tags i18n pagination_tags static thumbnail %} {% 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 %} {% blockplugin og_image_plugins.0 %} {% thumbnail instance.picture 200x113 replace_alpha='#FFFFFF' upscale as thumb %} {% endblockplugin %} {% if not current_page|is_empty_placeholder:"description" %} {% endif %} {% endblock meta_rdfa_context %} {% block body_rdfa %} vocab="https://schema.org/" typeof="Organization"{% endblock body_rdfa %} {% block content %}{% spaceless %} {% with organization=current_page.organization header_level=2 %} {% if organization %}
{% get_placeholder_plugins "banner" as plugins or %} {% endget_placeholder_plugins %} {% blockplugin plugins.0 %} {% if instance.picture.default_alt_text %}{{ instance.picture.default_alt_text }}{% else %}{% trans 'organization banner' %}{% endif %} {% endblockplugin %}

{% render_model request.current_page "title" %}

{% if current_page.publisher_is_draft %}
{% with category_variant="tag" %} {% placeholder "categories" or %}

{% trans "No associated categories" %}

{% endplaceholder %} {% endwith %}
{% endif %}
{% placeholder "description" %}
{% with courses=organization.get_courses %} {% if courses %} {% autopaginate courses GLIMPSE_PAGINATION_COURSES %}

{% trans "Related courses" %}

{% for course in page_obj.object_list %} {% include "courses/cms/fragment_course_glimpse.html" with course=course %} {% endfor %} {% if paginator.num_pages > 1 %} {% paginate using "richie/pagination.html" %} {% endif %}
{% endif %} {% endwith %} {% with persons=organization.get_persons %} {% if persons %} {% autopaginate persons GLIMPSE_PAGINATION_PERSONS %}

{% trans "Related persons" %}

{% for person in page_obj.object_list %} {% with header_level=3 %} {% include "courses/cms/fragment_person_glimpse.html" with person=person %} {% endwith %} {% endfor %} {% if paginator.num_pages > 1 %} {% paginate using "richie/pagination.html" %} {% endif %}
{% endif %} {% endwith %}
{% else %} {% include "courses/cms/fragment_error_detail_template_banner.html" with model="organization" %} {% endif %} {% endwith %} {% endspaceless %}{% endblock content %}