]> git.0d.be Git - panikweb.git/blob - panikweb_templates/templates/combo/cells/alimentation/episode_auto_selection.html
misc: run manage.py with python3
[panikweb.git] / panikweb_templates / templates / combo / cells / alimentation / episode_auto_selection.html
1 {% load paniktags thumbnail staticfiles %}
2 {% if title and episodes %}<h3>{{title}}</h3>{% endif %}
3 {% for episode in episodes %}
4 <div class="episode inline episode-inline">
5         <div class="logo">
6                 {% if episode.image %}
7                         {% thumbnail episode.image "60x60" crop="50% 25%" as im %}
8                         <img src="{{im.url}}"/>
9                         {% endthumbnail %}
10                 {% elif episode.emission.image %}
11                         {% thumbnail episode.emission.image "60x60" crop="50% 25%" as im %}
12                         <img src="{{im.url}}"/>
13                         {% endthumbnail %}
14                 {% else %}
15                         <img class="smooth"  style="width:60px;" src="{% static "img/emission.png" %}"/>
16                 {% endif %}
17         </div>
18         <div class="content">
19                 {% if episode.main_sound %}
20                         <div class="sound right">{% audio sound=episode.main_sound %}</div>
21                 {% endif %}
22                 <div class="title">
23                         <h5 class="title">
24                                 <a href="{% url 'episode-view' emission_slug=episode.emission.slug slug=episode.slug %}">{{ episode.title }}</a>
25                         </h5>
26                 </div>
27                 {% if episode.text %}
28                 <div class="description">
29                         {{ episode.text|safe|striptags|truncatewords:35 }}
30                 </div>
31                 {% endif %}
32         </div>
33 </div>
34 {% endfor %}