54 lines
1.7 KiB
HTML
54 lines
1.7 KiB
HTML
{% extends "aircox/page_detail.html" %}
|
|
{% comment %}Detail page of a show{% endcomment %}
|
|
{% load i18n aircox %}
|
|
|
|
{% block content-container %}
|
|
{% with schedules=program.schedule_set.all %}
|
|
{% if schedules %}
|
|
<header class="container schedules">
|
|
{% for schedule in schedules %}
|
|
<div class="schedule">
|
|
<div class="heading">
|
|
<span class="day">{{ schedule.get_frequency_display }}</span>
|
|
{% with schedule.start|date:"H:i" as start %}
|
|
{% with schedule.end|date:"H:i" as end %}
|
|
<time datetime="{{ start }}">{{ start }}</time>
|
|
—
|
|
<time datetime="{{ end }}">{{ end }}</time>
|
|
{% endwith %}
|
|
{% endwith %}
|
|
<small>
|
|
{% if schedule.is_rerun %}
|
|
{% with schedule.initial.date as date %}
|
|
<span title="{% blocktranslate %}Rerun of {{ date }}{% endblocktranslate %}">
|
|
({% translate "Rerun" %})
|
|
</span>
|
|
{% endwith %}
|
|
{% endif %}
|
|
</small>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</header>
|
|
{% endif %}
|
|
{% endwith %}
|
|
|
|
{{ block.super }}
|
|
|
|
{% if episodes %}
|
|
<section class="container">
|
|
<h3 class="title">{% translate "Last Episodes" %}</h3>
|
|
{% include "./widgets/carousel.html" with objects=episodes url_name="episode-list" url_parent=object url_label=_("All episodes") %}
|
|
</section>
|
|
{% endif %}
|
|
|
|
|
|
{% if articles %}
|
|
<section class="container">
|
|
<h3 class="title">{% translate "Last Articles" %}</h3>
|
|
{% include "./widgets/carousel.html" with objects=articles url_name="article-list" url_parent=object url_label=_("All articles") %}
|
|
</section>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|