{% extends "richie/fullwidth.html" %} {% load cms_tags i18n extra_tags pagination_tags static thumbnail humanize joanie feature_flags %} {% block head_title %} {% page_attribute "page_title" as course_title %} {% blocktrans with course_title=course_title %}{{ course_title }} - Course{% endblocktrans %} {% endblock head_title %} {% 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_html_default %} {% if not current_page|is_empty_placeholder:"course_introduction" %} {% endif %} {% endblock meta_html_default %} {% block meta_rdfa_context %} {% get_placeholder_plugins "course_cover" as plugins or %} {{ block.super }} {% endget_placeholder_plugins %} {% if plugins.0 %} {% thumbnail plugins.0.picture 1200x630 replace_alpha='#FFFFFF' crop upscale subject_location=plugins.0.picture.subject_location as thumb %} {% endif %} {% if not current_page|is_empty_placeholder:"course_introduction" %} {% endif %} {% endblock meta_rdfa_context %} {% block body_rdfa %} vocab="https://schema.org/" typeof="Course"{% endblock body_rdfa %} {% block subheader %}
{% block breadcrumbs %} {% include "menu/breadcrumbs.html" %} {% endblock breadcrumbs %} {% block subheader_content %}{% spaceless %} {% with course=current_page.course header_level=2 %} {% if course %}
{% block title %}

{% render_model current_page "title" %}

{% if course.code or current_page.publisher_is_draft %}
{% trans "Ref. " %}{% render_model course "code" "code,is_listed" "" "default:'...'" %}
{% endif %} {% endblock title %} {% 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" is_keywords_property=True %} {% 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 %}
{% if current_page.publisher_is_draft or not current_page|is_empty_placeholder:"course_introduction" %}
{% placeholder "course_introduction" or %}

{% trans 'Enter here an introduction to your course.' %}

{% endplaceholder %}
{% endif %} {% block synopsis %} {% if course.duration or course.effort or current_page.publisher_is_draft %}
    {% render_model_block course "duration,effort,is_self_paced" %} {% 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 %} {% if instance.get_pace_display or current_page.publisher_is_draft %}
  • {% trans "Pace:" %} {{ instance.get_pace_display|default:"NA" }}
  • {% endif %}
  • {% trans "Languages:" %} {{ course.languages_display|default:"NA" }}
  • {% block enrollment_count %} {% with enrollment_count=course.course_runs_enrollment_count %} {% if enrollment_count > 0 and RICHIE_MINIMUM_COURSE_RUNS_ENROLLMENT_COUNT > 0 and enrollment_count >= RICHIE_MINIMUM_COURSE_RUNS_ENROLLMENT_COUNT %}
  • {% blocktrans with count=enrollment_count|intcomma %} {{ count }} already enrolled! {% endblocktrans %}
  • {% endif %} {% endwith %} {% endblock enrollment_count %} {% endrender_model_block %}
{% endif %} {% endblock synopsis %}
{% placeholder "course_teaser" or %} {% get_placeholder_plugins "course_cover" as plugins or %} {% if current_page.publisher_is_draft %}

{% trans 'Add a teaser video or add a cover image below and it will be used as teaser image as well.' %}

{% endif %} {% endget_placeholder_plugins %} {% blockplugin plugins.0 %} {% if instance.picture.default_alt_text %}{{ instance.picture.default_alt_text }}{% else %}{% trans 'course cover image' %}{% endif %} {% endblockplugin %} {% endplaceholder %}
{% block main_organization %} {% with main_organization=course.get_main_organization %} {% if main_organization %} {% 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=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 course_run_subheader %}
{% for run in course.course_runs %} {% if request.toolbar.edit_mode_active %} {% render_model_block run %}
{% endrender_model_block %} {% endif %} {% endfor %} {% endblock course_run_subheader %}
{% endif %} {% endwith %} {% endspaceless %}{% endblock subheader_content %}
{% endblock subheader %} {% block content %}{% spaceless %} {% with course=current_page.course header_level=2 %}
{% if course %}
{% 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 %} {% placeholder_as_plugins "course_cover" as cover_plugins %} {% if current_page.publisher_is_draft %}

{% trans 'Glimpse cover' %}

{% if not cover_plugins %}

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

{% endif %} {% blockplugin cover_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 course_required_equipment %} {% if current_page.publisher_is_draft or not current_page|is_empty_placeholder:"course_required_equipment" %}

{% blocktrans context "course_detail__title" %}Required Equipment{% endblocktrans %}

{% placeholder "course_required_equipment" or %}

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

{% endplaceholder %}
{% endif %} {% endblock course_required_equipment %} {% 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 course_accessibility %} {% if current_page.publisher_is_draft or not current_page|is_empty_placeholder:"course_accessibility" %}

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

{% placeholder "course_accessibility" or %}

{% trans 'What is the accessibility of this course?' %}

{% endplaceholder %}
{% endif %} {% endblock course_accessibility %}
{% block plan %}
{% if current_page.publisher_is_draft or not current_page|is_empty_placeholder:"course_plan" %} {% with is_syllabus_property=True %}

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

{% placeholder "course_plan" or %}

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

{% endplaceholder %}
{% endwith %} {% endif %}
{% endblock plan %} {% endblock fragment_content %}
{% block runs %}
{% render_model_add course "" "" "get_admin_url_to_add_run" %} {% with runs_dict=current_page.course.course_runs_dict %} {% with open_visible_runs=runs_dict.0|add:runs_dict.1|add:runs_dict.2|visible_on_course_page:request.toolbar.edit_mode_active %} {% for run in open_visible_runs %} {% endfor %} {% endwith %} {% endwith %}
{% endblock runs %}
{% block fragment_relations %}
{% block programs %} {% with programs=course.get_programs %} {% if programs %} {% autopaginate programs GLIMPSE_PAGINATION_PROGRAMS %}

{% blocktrans count counter=programs|length %} This course is part of a program {% plural %} This course is part of programs {% endblocktrans %}

{% for program in page_obj.object_list %} {% include "courses/cms/fragment_program_glimpse.html" with program=program header_level=3 %} {% endfor %}
{% if paginator.num_pages > 1 %} {% include "richie/pagination.html" %} {% endif %}
{% endif %} {% endwith %} {% endblock programs %} {% 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 %} {% if current_page.publisher_is_draft or not current_page|is_empty_placeholder:"course_license_content" or not current_page|is_empty_placeholder:"course_license_participation" %}

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

{% if current_page.publisher_is_draft or not current_page|is_empty_placeholder:"course_license_content" %}

{% 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 %}
{% endif %} {% if current_page.publisher_is_draft or not current_page|is_empty_placeholder:"course_license_participation" %}

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

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

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

{% endplaceholder %} {% endwith %}
{% endif %}
{% endif %} {% endblock licenses %}
{% endblock fragment_relations %} {% else %} {% include "courses/cms/fragment_error_detail_template_banner.html" with model="course" %} {% endif %}
{% endwith %} {% endspaceless %}{% endblock content %}