{% extends "richie/fullwidth.html" %} {% load cms_tags i18n static %} {% block content %}{% spaceless %} {% with organization=current_page.organization header_level=2 %}
{% placeholder "banner" or %}
{% trans "Banner" %}
{% endplaceholder %}

{% render_model request.current_page "title" %}

{% placeholder "description" %}
{% with courses=organization.get_courses %} {% if courses %}

{% trans "Related courses" %}

{% for course in courses %} {# If the current page is a draft, show draft courses with a class annotation for styling #} {% if current_page.publisher_is_draft %} {% if course.check_publication is True %} {% include "courses/cms/fragment_course_glimpse.html" with course=course.public_extension %} {% else %} {% include "courses/cms/fragment_course_glimpse.html" with course=course %} {% endif %} {# If the current course page is the published version, show only the courses that are published #} {% elif course.check_publication is True %} {% include "courses/cms/fragment_course_glimpse.html" with course=course.public_extension %} {% endif %} {% endfor %}
{% endif %} {% endwith %} {% endwith %} {% endspaceless %}{% endblock content %}