{% extends "richie/fullwidth.html" %} {% load cms_tags i18n extra_tags %} {% 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 "titles" %} {% 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 %} {% placeholder "course_cover" or %}

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

{% endplaceholder %} {% 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.cta %} {{ run.state.cta|capfirst }} {% else %} {{ run.state.text|capfirst }} {% endif %}
{% empty %} {% trans "No associated course runs" %} {% endfor %}
{% endwith %} {% endspaceless %}
{% endspaceless %}{% endblock content %}