{% extends "cms/publication.html" %} {# generic page to display programs #} {% load i18n %} {% load wagtailcore_tags %} {# TODO message if program is no more active #} {% block content_extras %}
{% if page.program.active %}

{% trans "Schedule" %}

{% else %}
{% trans "This program is no longer active" %}
{% endif %}
{% endblock %} {% block page_nav_extras %} {% if page.program.active %} {% with object_list=page.next_diffs %} {% if object_list %}

{% trans "Next Diffusions" %}

{% include "cms/list.html" %}
{% endif %} {% endwith %} {% endif %}{# program.active #} {% with object_list=page.prev_diffs %} {% if object_list %}

{% trans "Previous Diffusions" %}

{% include "cms/list.html" %}
{% endif %} {% endwith %} {% endblock %}