{% 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:"excerpt" %} {% elif 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 200x113 replace_alpha='#FFFFFF' upscale as thumb %} {% endif %} {% if not current_page|is_empty_placeholder:"excerpt" %} {% elif 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 %}
{% placeholder_as_plugins "banner" as plugins or %} {% endplaceholder_as_plugins %} {% blockplugin plugins.0 %} {% 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 %} {% if current_page.publisher_is_draft or not current_page|is_empty_placeholder:"excerpt" %}
{% placeholder "excerpt" or %}

{% trans "No excerpt content" %}

{% endplaceholder %}
{% endif %}
{% placeholder "description" %}
{% block related_organizations %} {% if current_page.publisher_is_draft or not current_page|is_empty_placeholder:"related_organizations" %}

{% blocktrans context "organization_detail__title" %}Related organizations{% endblocktrans %}

{% with header_level=3 %} {% placeholder "related_organizations" or %}

{% trans "Are there organizations affiliated to this organization?" %}

{% endplaceholder %} {% endwith %}
{% endif %} {% endblock related_organizations %} {% 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 header_level=3 %} {% endfor %} {% if paginator.num_pages > 1 %} {% include "richie/pagination.html" with label=_("Related courses pagination") %} {% 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 %} {% include "richie/pagination.html" with label=_("Related persons pagination") %} {% endif %}
{% endif %} {% endwith %}
{% else %} {% include "courses/cms/fragment_error_detail_template_banner.html" with model="organization" %} {% endif %} {% endwith %} {% endspaceless %}{% endblock content %}