{% load thumbnails paniktags staticfiles %}
{% if date != False %}
{{ episode.first_diffusion|date:"D"|slice:":2"}}
{{ episode.first_diffusion|date:"d" }}
{% if date != "daytime" %}
{{ episode.first_diffusion|date:"M y" }}
{% endif %}
{{ episode.first_diffusion|date:"H:i" }}
{% endif %}
{% if episode.main_sound %}
{% audio sound=episode.main_sound %}
{% endif %}
{{ episode.title }}
{% if class = "standalone" %}
{{ episode.emission.title }}
{% if episode.emission.categories %} {% for category in episode.emission.categories.all %} {% if forloop.counter > 1 %} - {% endif %}{{category}} {% endfor%} {% endif %} {% endif %}
{% if model = "inline" %} {% else %} {% if episode.subtitle %}
{{ episode.subtitle|truncatewords:50 }}
{% elif episode.text %}
{{ episode.text|safe|truncatewords:50}}
{% endif %} {% endif %}