{% extends "richie/fullwidth.html" %} {% load cms_tags i18n extra_tags static thumbnail %} {% block meta_index_rules %} {# Make sure course snapshot pages are not indexed by search engines #} {% if current_page.parent_page.course %} {% else %} {{ block.super }} {% endif %} {% endblock meta_index_rules %} {% block meta_opengraph_contextuals %} {% endblock meta_opengraph_contextuals %} {% block subheader %}
{% block breadcrumbs %} {% include "menu/breadcrumbs.html" %} {% endblock breadcrumbs %} {% block subheader_content %}{% spaceless %} {% with course=current_page.course header_level=2 %}
{% block categories %} {% if current_page.publisher_is_draft or not current_page|is_empty_placeholder:"course_icons" or not current_page|is_empty_placeholder:"course_categories" %}
{% with category_variant="badge" %} {% placeholder "course_icons" %} {% placeholder "course_categories" or %} {% if current_page.publisher_is_draft and current_page|is_empty_placeholder:"course_icons" %} {% trans "No associated categories" %} {% endif %} {% endplaceholder %} {% endwith %}
{% endif %} {% endblock categories %} {% block title %}

{% render_model request.current_page "title" %}

{% endblock title %}
{% placeholder "course_teaser" or %}
{% trans 'Add a video or teaser.' %}
{% endplaceholder %}
{% if current_page.publisher_is_draft or not current_page|is_empty_placeholder:"course_introduction" %} {% with header_level=3 %} {% placeholder "course_introduction" or %}

{% trans 'Enter here a introduction of your course.' %}

{% endplaceholder %} {% endwith %} {% endif %} {% block synopsis %} {% 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 %} {% endblock synopsis %}
{% block main_organization %} {% 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 %} {% endblock main_organization %} {% block social_networks %} {% include "social-networks/course-badges.html" with page_title=request.current_page.get_title page_url=request.current_page.get_absolute_url %} {% endblock social_networks %} {% block contact %} {% trans "Contact us" %} {% endblock contact %}
{% endwith %} {% endspaceless %}{% endblock subheader_content %}
{% endblock subheader %} {% block content %}{% spaceless %} {% with course=current_page.course header_level=2 %}
{% block snapshot %} {% 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 %} {% endblock snapshot %} {% block cover %} {% if current_page.publisher_is_draft %}

{% trans 'Glimpse cover' %}

{% 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 %} {% endblock cover %} {% block fragment_content %}
{% block skills %} {% if current_page.publisher_is_draft or not current_page|is_empty_placeholder:"course_skills" %}

{% blocktrans context "course_detail__title" %}What you will learn{% endblocktrans %}

{% trans "At the end of this course, you will be able to:" %}

{% placeholder "course_skills" %}
{% endif %} {% endblock skills %} {% block description %} {% if current_page.publisher_is_draft or not current_page|is_empty_placeholder:"course_description" %}

{% blocktrans context "course_detail__title" %}Description{% endblocktrans %}

{% placeholder "course_description" %}
{% endif %} {% endblock description %} {% block format %} {% if current_page.publisher_is_draft or not current_page|is_empty_placeholder:"course_format" %}

{% blocktrans context "course_detail__title" %}Format{% endblocktrans %}

{% placeholder "course_format" or %}

{% trans 'How is the course structured?' %}

{% endplaceholder %}
{% endif %} {% endblock format %} {% block prerequisites %} {% if current_page.publisher_is_draft or not current_page|is_empty_placeholder:"course_prerequisites" %}

{% blocktrans context "course_detail__title" %}Prerequisites{% endblocktrans %}

{% placeholder "course_prerequisites" or %}

{% trans 'What are the prerequisites to follow this course?' %}

{% endplaceholder %}
{% endif %} {% endblock prerequisites %} {% block assessment %} {% if current_page.publisher_is_draft or not current_page|is_empty_placeholder:"course_assessment" %}

{% blocktrans context "course_detail__title" %}Assessment and certification{% endblocktrans %}

{% placeholder "course_assessment" or %}

{% trans "How is progress evaluated and/or certified?" %}

{% endplaceholder %}
{% endif %} {% endblock assessment %}
{% block plan %}
{% if current_page.publisher_is_draft or not current_page|is_empty_placeholder:"course_plan" %}

{% blocktrans context "course_detail__title" %}Course plan{% endblocktrans %}

{% placeholder "course_plan" or %}

{% trans 'Enter here the detailed course plan.' %}

{% endplaceholder %}
{% endif %}
{% endblock plan %} {% endblock fragment_content %}
{% block runs %}
{% with runs_dict=course.get_course_runs_dict %} {% block runs_open %}

{% blocktrans context "course_detail__title" %}Course runs{% endblocktrans %} {% render_model_add course "" "" "get_admin_url_to_add_run" %}

{% for run in runs_dict.0|add:runs_dict.1 %} {% include "courses/cms/fragment_course_run.html" %} {% empty %}
{% trans "No open course runs" %}
{% endfor %}
{% endblock runs_open %} {% block runs_to_be_scheduled %} {% if runs_dict.6 and current_page.publisher_is_draft %}

{% trans "To be scheduled" context "Course runs to be scheduled (plural)" %}

{% include "courses/cms/fragment_course_runs_list.html" with course_runs=runs_dict.6 %}
{% endif %} {% endblock runs_to_be_scheduled %} {% block runs_upcoming %} {% if runs_dict.2 %}

{% trans "Upcoming" context "Upcoming course runs (plural)" %}

{% include "courses/cms/fragment_course_runs_list.html" with course_runs=runs_dict.2 %}
{% endif %} {% endblock runs_upcoming %} {% block runs_ongoing %} {% if runs_dict.3 or runs_dict.4 %}

{% trans "Ongoing" context "Ongoing course runs (plural)" %}

{% include "courses/cms/fragment_course_runs_list.html" with course_runs=runs_dict.3|add:runs_dict.4 %}
{% endif %} {% endblock runs_ongoing %} {% block runs_archived %} {% if runs_dict.5 %}

{% trans "Archived" context "Archived course runs (plural)" %}

{% include "courses/cms/fragment_course_runs_list.html" with course_runs=runs_dict.5 %}
{% endif %} {% endblock runs_archived %} {% endwith %}
{% endblock runs %}
{% block fragment_relations %}
{% block team %} {% if current_page.publisher_is_draft or not current_page|is_empty_placeholder:"course_team" %}

{% blocktrans context "course_detail__title" %}Course team{% endblocktrans %}

{% with header_level=3 %}
{% placeholder "course_team" page or %}

{% trans 'Who are the teachers in the course team?' %}

{% endplaceholder %}
{% endwith %}
{% endif %} {% endblock team %} {% block organizations %} {% if current_page.publisher_is_draft or not current_page|is_empty_placeholder:"course_organizations" %}

{% blocktrans context "course_detail__title" %}Organizations{% endblocktrans %}

{% placeholder "course_organizations" or %}

{% trans "What are the organizations publishing this course?" %}

{% endplaceholder %}
{% endif %} {% endblock organizations %} {% block information %} {% if current_page.publisher_is_draft or not current_page|is_empty_placeholder:"course_information" %}
{% placeholder "course_information" %}
{% endif %} {% endblock information %} {% block licenses %}

{% blocktrans context "course_detail__title" %}License{% endblocktrans %}

{% trans 'License for the course content' %}

{% with header_level=4 %} {% placeholder "course_license_content" page or %}

{% trans 'What is the license for the course content?' %}

{% endplaceholder %} {% endwith %}

{% trans 'License for the content created by course participants' %}

{% with header_level=4 %} {% placeholder "course_license_participation" page or %}

{% trans 'What is the license for the content created by course participants?' %}

{% endplaceholder %} {% endwith %}
{% endblock licenses %}
{% endblock fragment_relations %}
{% endwith %} {% endspaceless %}{% endblock content %}