{% extends "aircox/page.html" %}
{% load i18n aircox humanize %}

{% block title %}
{% with station.name as station %}
{% blocktrans %}Today on {{ station }}{% endblocktrans %}
{% endwith %}
{% endblock %}

{% block subtitle %}{{ date|date:"l d F Y" }}{% endblock %}

{% block filters %}
{% with "diffusion-list" as url_name %}
{% include "aircox/widgets/dates_menu.html" %}
{% endwith %}
{% endblock %}

{% block main %}{{ block.super }}
{% with hide_schedule=True %}
<section role="list">
    <div id="timetable-{{ date|date:"Y-m-d" }}">
        {% for diffusion in object_list %}
        {# FIXME: opacity should work -- maybe hidden tz #}
        <div class="columns {% if diffusion.start.date != date and diffusion.start.end <= date %}is-opacity-light{% endif %}">
            <div class="column is-one-fifth has-text-right">
                <time datetime="{{ diffusion.start|date:"c" }}">
                {{ diffusion.start|date:"H:i" }} - {{ diffusion.end|date:"H:i" }}
                </time>
            </div>
            <div class="column">
                {% with diffusion.episode as object %}
                {% include "aircox/widgets/episode_item.html" %}
                {% endwith %}
            </div>
        </div>
        {% endfor %}
    </div>
</section>
{% endwith %}

{% comment %}
<nav class="column menu is-one-third-desktop" role="menu">
</nav>
{% endcomment %}

{% endblock %}

