1 {% load thumbnail paniktags staticfiles %}
2 <div class="episode soundfile inline cf">
4 {% if soundfile.episode.image %}
5 {% thumbnail soundfile.episode.image "60x60" crop="50% 25%" as im %}
6 <img width="60" height="60" src="{{im.url}}"/>
8 {% elif soundfile.episode.emission.image %}
9 {% thumbnail soundfile.episode.emission.image "60x60" crop="50% 25%" as im %}
10 <img width="60" height="60" src="{{im.url}}"/>
13 <img width="60" height="60" src="{% static "img/sound.png" %}"/>
21 <div class="sound right">{% audio sound=soundfile %}</div>
23 {% if soundfile.fragment %}
25 <a href="{% url 'episode-view' emission_slug=soundfile.episode.emission.slug slug=soundfile.episode.slug %}">{{ soundfile.title }}</a>
28 <h5 class="title {% if model = "inline" %}ellipsis{% endif %}">
29 <a href="{% url 'episode-view' emission_slug=soundfile.episode.emission.slug slug=soundfile.episode.slug %}">{{ soundfile.episode.title }}</a>
31 <div class="smooth metas">
32 {% if soundfile.format %}
33 <span class="categories">
34 <span class="category">{{ soundfile.format.title }}</span>
37 <h5 class="title inBlock">
38 <a href="{% url 'emission-view' slug=soundfile.episode.emission.slug %}">{{ soundfile.episode.emission.title }}</a>
43 {% if soundfile.episode.subtitle %}
44 <div class="description ellipsis">
45 {{ soundfile.episode.subtitle|truncatewords:20}}