forked from rc/aircox
62 lines
1.8 KiB
HTML
62 lines
1.8 KiB
HTML
{% extends "aircox/page_detail.html" %}
|
|
{% comment %}Detail page of a show{% endcomment %}
|
|
{% load i18n aircox %}
|
|
|
|
{% block content %}
|
|
|
|
{% with schedules=object.schedule_set.all %}
|
|
{% if object.active and schedules %}
|
|
<header class="schedules mt-3">
|
|
{% 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 }}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
{% block episodes %}
|
|
{% if episodes %}
|
|
<section class="container">
|
|
<h2 class="title is-2">{% translate "Last Episodes" %}</h2>
|
|
{% include "./widgets/carousel.html" with objects=episodes url_name="episode-list" url_parent=object url_label=_("All episodes") %}
|
|
</section>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block main %}
|
|
{{ block.super }}
|
|
|
|
{% if articles %}
|
|
<section class="container">
|
|
<h2 class="title is-2">{% translate "Last Articles" %}</h2>
|
|
{% include "./widgets/carousel.html" with objects=articles url_name="article-list" url_parent=object url_label=_("All articles") %}
|
|
</section>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|