{% extends "emissions/emission_detail.html" %} {% load i18n thumbnail paniktags %} {% block main %} {% if episode.image %}
{% thumbnail episode.image "1400x800" crop="50% 25%" as im %}
{% endthumbnail %}
{% elif emission.image %}
{% thumbnail emission.image "1400x800" crop="50% 25%" as im %}
{% endthumbnail %}
{% endif %}
{% trans "Back to emission" %}

{{ emission.title }}
{{ episode.title }}{% if episode.subtitle %}
{{ episode.subtitle }}{% endif %}

{% include "includes/tags.html" with object=episode %} {% if diffusions.exists %}

{% for diffusion in diffusions %}{{diffusion.datetime|date:"d.m.Y H.i"}} {% if not forloop.last %} | {% endif %}{% endfor %}

{% endif %} {% with text_parts=episode.text|safe|hr_split %} {% if episode.main_sound %}
{% if episode.main_sound.get_external_host == 'mixcloud' %} {% elif episode.main_sound.get_external_host == 'soundcloud' %} {% endif %}
{% endif %}
{{ text_parts|first|safe}}
{% if text_parts|length > 1 %}
{% for part in text_parts %} {% if forloop.counter > 1 %} {{ part|safe}} {% if not forloop.last %}
{% endif %} {% endif %} {% endfor %}
{% endif %}
{% if episode.extra_links %}
    {% for kind, url in episode.get_extra_links_and_kind %}
  • {{ url }}
  • {% endfor %}
{% else %}
{% endif %}
{% endwith %}
{% endblock %}