{% extends "courses/base-course.html" %} {% load i18n %} {% load dashboard_extras %} {% load staticfiles %} {% load render_bundle from webpack_loader %} {% block view-name %}view-course-enrollment view-dashboard{% endblock view-name %} {% block javascript %} {{ block.super }} {% render_bundle 'enrollment-demographics-age-main' %} {% endblock javascript %} {% block child_content %}

{% trans "Age Metrics" %}

{% if summary %}
{# Translators: This is a label to identify the median age of enrolled learners. #} {% trans "Median Learner Age" as label %} {% trans "The midpoint of the learner ages, computed from the provided year of birth." as tooltip %} {% summary_point summary.median label tooltip=tooltip %}
{# Translators: This is a label to identify the number of learners in the age range. #} {% trans "Learners 25 and Under" as label %} {% trans "The percentage of learners aged 25 years or younger (of those who provided a year of birth)." as tooltip %} {% summary_point summary.age_25_and_under|metric_percentage label tooltip=tooltip %}
{# Translators: This is a label to identify the number of learners in the age range. #} {% trans "Learners 26 to 40" as label %} {% trans "The percentage of learners aged from 26 to 40 years (of those who provided a year of birth)." as tooltip %} {% summary_point summary.age_26_to_40|metric_percentage label tooltip=tooltip %}
{# Translators: This is a label to identify the number of learners in the age range. #} {% trans "Learners 41 and Over" as label %} {% trans "The percentage of learners aged 41 years or older (of those who provided a year of birth)." as tooltip %} {% summary_point summary.age_41_and_over|metric_percentage label tooltip=tooltip %}
{% else %} {% show_metrics_error %} {% endif %}

{% trans "Age Breakdown" %}

{% if js_data.course.ages %}
{% include "loading.html" %}
{% else %} {% show_table_error %} {% endif %}
{% endblock %}