{% 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 %}
<nav class="nav secondary">
    {% include "./widgets/dates_menu.html" with url_name=view.redirect_date_url %}
</nav>
{% endblock %}


{% block breadcrumbs %}
{% if page and model.list_url_name %}
    <a href="{% url model.list_url_name %}">{{ page.title }}</a>
    {% if category %}
    <a href="{% url request.resolver_match.url_name category_slug=category.slug %}">
        {{ category.title }}
    </a>
    {% endif %}
{% endif %}
<a href="{% url "timetable-list" date=date %}">{{ date|date:"l d F Y" }}</a>
{% endblock %}


{% block list-container %}
{% with list_class="grid" %}
<section class="container clear-both list grid list-grille list-home list-emissions" role="list">
<section class="container" style="display:flex;justify-content:flex-end;min-height:600px">
<div class="fifty">
{% block list %}
{% with object_list=object_list timetable=True  %}
{% with widget|default:"item" as widget %}

    {% for object in object_list %}
    {% if object.episode %}
        <div class="lagrille">
        {% page_widget widget object.episode diffusion=object timetable=True %}
        </div>
    {% else %}
        <div class="preview list-item logs">
            <div class="media d-block content recentdisplay" style="display:none !important;">
            {% for obj in object %}
            {% include "aircox/widgets/track_item.html" with object=obj.track log=obj timetable=True %}
            <br />
            {% endfor %}
            </div>
        </div>
    {% endif %}
    {% endfor %}

{% endwith %}
{% endwith %}
{% endblock %}
</div>
</section>
</section>
{% 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 %}
