forked from rc/aircox
53 lines
1.5 KiB
HTML
53 lines
1.5 KiB
HTML
{% extends "aircox/page.html" %}
|
|
{% comment %}List of diffusions as a timetable{% endcomment %}
|
|
{% load i18n aircox humanize %}
|
|
|
|
{% block title %}
|
|
{% if not page or not page.title %}
|
|
{% with station.name as station %}
|
|
{% blocktrans %}This week on {{ station }}{% endblocktrans %}
|
|
{% endwith %}
|
|
{% else %}
|
|
{{ block.super }}
|
|
{% endif %}
|
|
{% 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 %}
|
|
|