{% load i18n %} {% load markdownify %} {% load courses_extra %} {% if run %} {% include "courses/includes/modal_subscribe.html" with form=form run=run %} {% include "courses/includes/modal_subscribe.html" with form=form run=run unsubscribe=True %} {% endif %}

{{ course.title }}

{% if run %}

{{ run.title|upper }}

{% endif %}
{% if not run %}

{{ course.description|markdownify:"iframes_allowed" }}

{% endif %}
{% if run %}

{{ run.start }}{% if run.end %} - {{ run.end }}{% endif %} {% if run.self_paced %}
{% translate "Self-paced" %}{% endif %}

{% if user.is_authenticated and not run.is_past_due %}

{% if not subscribed %} {% if run.limit|subtract:run.users.count != 0 %} {% endif %} {% if run.limit|subtract:run.users.count < 10 %} {% translate "Remains" %} {{ run.limit|subtract:run.users.count }} {% endif %} {# {% else %}#} {# #} {% endif %}

{% endif %} {% endif %}