forked from rc/aircox
30 lines
847 B
HTML
30 lines
847 B
HTML
{% comment %}
|
|
Header displaying informations of a program.
|
|
|
|
FIXME: consider moving into the "widgets" directory.
|
|
{% endcomment %}
|
|
{% load i18n %}
|
|
<section class="is-size-5 has-text-weight-bold">
|
|
{% for schedule in program.schedule_set.all %}
|
|
{{ schedule.get_frequency_verbose }}
|
|
{% 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.initial %}
|
|
{% with schedule.initial.date as date %}
|
|
<span title="{% blocktrans %}Rerun of {{ date }}{% endblocktrans %}">
|
|
({% trans "rerun" %})
|
|
</span>
|
|
{% endwith %}
|
|
{% endif %}
|
|
</small>
|
|
<br>
|
|
{% endfor %}
|
|
</section>
|
|
|