]> git.0d.be Git - panikweb-esperanzah.git/blob - panikweb_esperanzah/templates/emissions/resume.html
sync a bit of player with panik
[panikweb-esperanzah.git] / panikweb_esperanzah / templates / emissions / resume.html
1 {% load thumbnail static %}
2 <div class="emission emission-resume resume cf">
3   <div class="{% if emission.archived %}archived{% endif %}">
4     <a class="block" href="{% url 'emission-view' slug=emission.slug %}">
5       <div class="logo left">
6         {% if emission.image %}
7           {% thumbnail emission.image "60x60" crop="50% 25%" as im %}
8             <img width="60" height="60" src="{{im.url}}"/>
9           {% endthumbnail %}
10         {% else %}
11           <img class="smooth"  style="width:60px;" src="{% static "img/emission.png" %}"/>
12         {% endif %}
13       </div>
14       <div class="title">
15         <h5>
16           {{ emission.title }}
17         </h5>
18         <div class="smooth metas">
19           {% if emission.categories %}
20             <span class="categories">
21               {% for category in emission.categories.all %}
22                 {% if forloop.counter > 1 %} - {% endif %}<span class="category">{{category}}</span>
23               {% endfor%}
24             </span>
25           {% endif %}
26         </div>
27       </div>
28       {% if emission.subtitle %}
29         <div class="description">
30           {{ emission.subtitle }}
31         </div>
32       {% elif emission.text %}
33         <div class="description">
34           {{ emission.text|safe|striptags|truncatewords:20}}
35         </div>
36       {% endif %}
37     </a>
38   </div>
39 </div>