{% extends "richie/fullwidth.html" %} {% load cms_tags i18n extra_tags thumbnail %} {% block meta %} {# Make sure course snapshot pages are not indexed by search engines #} {% if current_page.parent_page.course %}{% endif %} {% endblock meta %} {% block content %}{% spaceless %}
{% spaceless %} {% with course=current_page.course header_level=2 %}
{% if request.current_page.parent_page.course %}
{% blocktrans with creation_date=request.current_page.creation_date|date:"SHORT_DATE_FORMAT" %} Archived on {{ creation_date }} {% endblocktrans %}
{% trans "Go to current version" %}
{% endif %}

{% if request.current_page.parent_page.course %} {{ request.current_page.parent_page.get_title }} {% else %} {% render_model request.current_page "title" %} {% endif %}

{% with form_factor="tag" %} {% page_placeholder "course_categories" current_page or %}

{% trans "No associated categories" %}

{% endpage_placeholder %} {% endwith %}
{% include "courses/cms/fragment_course_content.html" with page=current_page %}
{% if current_page.publisher_is_draft %}
{% get_placeholder_plugins "course_cover" as plugins or %}

{% trans 'Add an image for course cover on its glimpse.' %}

{% endget_placeholder_plugins %} {% blockplugin plugins.0 %} {% if instance.picture.default_alt_text %}{{ instance.picture.default_alt_text }}{% else %}{% trans 'course cover image' %}{% endif %} {% endblockplugin %}
{% endif %} {% with main_organization=course.get_main_organization %} {% if main_organization %} {% if current_page.publisher_is_draft %} {% if main_organization.check_publication is True %} {% include "courses/cms/fragment_organization_main_logo.html" with organization=main_organization.public_extension %} {% else %} {% include "courses/cms/fragment_organization_main_logo.html" with organization=main_organization %} {% endif %} {# If the current page is the published version, show only the organizations that are published #} {% elif main_organization.check_publication is True %} {% include "courses/cms/fragment_organization_main_logo.html" with organization=main_organization.public_extension %} {% endif %} {% else %} {% include "courses/cms/fragment_organization_main_logo.html" with organization=None %} {% endif %} {% endwith %} {% if course.duration or course.effort or current_page.publisher_is_draft %}
{% render_model_block course "duration,effort" %} {% if instance.duration or current_page.publisher_is_draft %}
{% trans "Duration:" %}
{{ instance.get_duration_display|default:"NA" }}
{% endif %} {% if instance.effort or current_page.publisher_is_draft %}
{% trans "Effort:" %}
{{ instance.get_effort_display|default:"NA" }}
{% endif %} {% endrender_model_block %}
{% endif %}

{% trans 'Course runs' %}

{% for run in course.get_course_runs_for_language %}
{% trans "Enrollment" %}
{% render_model run "enrollment_start" "enrollment_start,enrollment_end" "" "date:'SHORT_DATE_FORMAT'|default:'...'" as start %} {% render_model run "enrollment_end" "enrollment_start,enrollment_end" "" "date:'SHORT_DATE_FORMAT'|default:'...'" as end %} {% trans "From" %} {{ start|safe }} {% trans "to" %} {{ end|safe }}
{% trans "Course" %}
{% render_model run "start" "start,end" "" "date:'SHORT_DATE_FORMAT'|default:'...'" as start %} {% render_model run "end" "start,end" "" "date:'SHORT_DATE_FORMAT'|default:'...'" as end %} {% trans "From" %} {{ start|safe }} {% trans "to" %} {{ end|safe }}
{% trans "Languages" %}
{% render_model run "get_languages_display" "languages" %}
{% if current_page.publisher_is_draft %}
{% trans "Resource link" %}
{% render_model run "resource_link" "resource_link" %}
{% endif %}
{% if run.state.call_to_action %} {{ run.state.call_to_action|capfirst }} {% else %} {{ run.state.text|capfirst }} {% endif %}
{% empty %}
{% trans "No associated course runs" %}
{% endfor %}
{% endwith %} {% endspaceless %}
{% endspaceless %}{% endblock content %}