]> git.0d.be Git - panikweb.git/blob - panikweb_templates/templates/emissions/resume.html
2a8e293e8cb044cae74b4c83fe9eeb159fd0cffb
[panikweb.git] / panikweb_templates / templates / emissions / resume.html
1 {% load thumbnails %}
2 {% load staticfiles %}
3 <div class="emission emission-resume resume cf">
4         <div class="{% if emission.archived %}archived{% endif %}">
5                 <a class="block" href="{% url 'emission-view' slug=emission.slug %}">
6                         <div class="logo left">
7                                 {% if emission.image %}
8                                         <img width="50" height="50" src="{{ emission.image|thumbnail:'50x50' }}"/>
9                                 {% else %}
10                                         <img  class="smooth" width="50" height="50" src="{% static "img/defaultLogo.png" %}"/>
11                                 {% endif %}
12                         </div>
13                         <h5 class="title ellipsis">
14                                 {% for category in emission.categories.all %}<span class="inBlock icon-{{category|slugify}}"></span>{% endfor%}         
15                                 {{ emission.title }}
16                         </h5>
17                         {% if emission.subtitle %}
18                                 <div class="description ellipsis">
19                                         {{ emission.subtitle }}
20                                 </div>
21                         {% elif emission.text %}
22                                 <div class="description ellipsis">
23                                         {{ emission.text|safe|striptags|truncatewords:20}}
24                                 </div>
25                         {% endif %}
26                 </a>
27         </div>
28 </div>