{% extends "courses/base-course.html" %} {% load i18n %} {% load staticfiles %} {% load dashboard_extras %} {% load rjs %} {% comment %} Individual course-centric enrollment geography view. {% endcomment %} {% block view-name %}view-course-enrollment view-dashboard{% endblock view-name %} {% block javascript %} {{ block.super }} {% endblock javascript %} {% block child_content %}

{% trans "Geography Metrics" %}

{% if top_countries %}
{# Translators: This string represents the number of countries where learners are enrolled. #} {% trans "Total Countries or Regions Represented" as label %} {% trans "Countries or regions with at least one learner." as tooltip %} {% summary_point num_countries label ' ' tooltip %}
{% for datum in top_countries %}
{% if forloop.first %} {# Translators: This string represents the country or region with the greatest number of enrolled learners. #} {% trans "Top Country or Region by Enrollment" as label %} {% trans "Country or region with the largest number of learners." as tooltip %} {% elif forloop.counter == 2 %} {# Translators: This string represents the country or region with the second-greatest number of enrolled learners. #} {% trans "Second Country or Region by Enrollment" as label %} {% trans "Country or region with the second largest number of learners." as tooltip %} {% elif forloop.counter == 3 %} {# Translators: This string represents the country or region with the third-greatest number of enrolled learners. #} {% trans "Third Country or Region by Enrollment" as label %} {% trans "Country or region with the third largest number of learners." as tooltip %} {% endif %} {% captureas subheading %} {% captureas percent %}{% widthratio datum.percent 1 100 %}{% endcaptureas %} {# Translators: This string represents the percentage of learners in a course. Move the % symbol, if necessary, but keep the percent variable/placeholder. #} {% blocktrans %}{{ percent }}% of learners{% endblocktrans %} {% endcaptureas %} {% summary_point datum.countryName label subheading tooltip %}
{% endfor %}
{% else %} {% show_metrics_error %} {% endif %}

{% trans "Geographic Breakdown" %}

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