{% extends "aircox/basepage_list.html" %} {% comment %}List of diffusions as a timetable{% endcomment %} {% load i18n aircox humanize %} {% block subtitle %}{{ date|date:"l d F Y" }}{% endblock %} {% block secondary-nav %} {% endblock %} {% block breadcrumbs %} {% if parent and model.list_url_name %} {% include "./widgets/breadcrumbs.html" with page=parent %} {{ model|verbose_name:True }} {% elif page and model.list_url_name %} {{ page.title }} {% if category %} {{ category.title }} {% endif %} {% else %} {{ model|verbose_name:True }} {% if category %} {{ category.title }} {% endif %} {% endif %} {{ date|date:"l d F Y" }} {% endblock %} {% block list-container %} {% with list_class="grid" %}
{% block list %} {% with object_list=object_list timetable=True %} {% with widget|default:"item" as widget %} {% for object in object_list %} {% if object.episode %}
{% page_widget widget object.episode diffusion=object timetable=True %}
{% else %}
{% for obj in object %} {% include "aircox/widgets/track_item.html" with object=obj.track log=obj timetable=True %}
{% endfor %}
{% endif %} {% endfor %} {% endwith %} {% endwith %} {% endblock %}
{% endwith %} {% endblock %} {% block title %} {% if parent %}{{ parent.title }} {% else %}{{ block.super }} {% endif %} {% endblock %} {% block header %} {% if page and not object %} {% with page as object %} {{ block.super }} {% endwith %} {% else %} {{ block.super }} {% endif %} {% endblock %} {% block content-container %}{% endblock %} {% block list-pagination %} {% include "./widgets/page_pagination.html" %} {% endblock %}