forked from rc/aircox
46 lines
1.1 KiB
HTML
46 lines
1.1 KiB
HTML
{% extends "aircox/widgets/page_item.html" %}
|
|
{% comment %}
|
|
List item for an episode.
|
|
|
|
Context variables:
|
|
- object: episode
|
|
- diffusion: episode's diffusion
|
|
- hide_schedule: if True, do not display start time
|
|
{% endcomment %}
|
|
|
|
{% load i18n easy_thumbnails_tags aircox %}
|
|
|
|
{% if diffusion and diffusion.is_now %}{% block css %}is-primary{% endblock %}{% endif %}
|
|
|
|
{% block title %}
|
|
{% if not object.is_published and object.program.is_published %}
|
|
<a href="{{ object.program.get_absolute_url }}">
|
|
{{ object.title }}
|
|
</a>
|
|
{% else %}
|
|
{{ block.super }}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block subtitle %}
|
|
{{ block.super }}
|
|
|
|
{% if diffusion %}
|
|
{% if not hide_schedule %}
|
|
{% if object.category %}—{% endif %}
|
|
<time datetime="{{ diffusion.start|date:"c" }}" title="{{ diffusion.start }}">
|
|
{{ diffusion.start|date:"d M, H:i" }}
|
|
</time>
|
|
{% endif %}
|
|
|
|
{% if diffusion.initial %}
|
|
{% with diffusion.initial.date as date %}
|
|
<span title="{% blocktrans %}Rerun of {{ date }}{% endblocktrans %}">
|
|
{% trans "(rerun)" %}
|
|
</span>
|
|
{% endwith %}
|
|
{% endif %}
|
|
{% endif %}
|
|
{% endblock %}
|
|
|