-{% load thumbnails %}
-{% load staticfiles %}
+{% load thumbnail staticfiles %}
<div class="emission emission-resume resume cf">
<div class="{% if emission.archived %}archived{% endif %}">
<a class="block" href="{% url 'emission-view' slug=emission.slug %}">
<div class="logo left">
{% if emission.image %}
- <img width="50" height="50" src="{{ emission.image|thumbnail:'50x50' }}"/>
+ {% thumbnail emission.image "60x60" crop="50% 25%" as im %}
+ <img alt="" width="60" height="60" src="{{im.url}}"/>
+ {% endthumbnail %}
{% else %}
- <img class="smooth" width="50" height="50" src="{% static "img/defaultLogo.png" %}"/>
+ <img alt="" class="smooth" style="width:60px;" src="{% static "img/emission.png" %}"/>
{% endif %}
</div>
- <div class="title ellipsis">
- <h5 class="inBlock">
+ <div class="title">
+ <h5>
{{ emission.title }}
</h5>
<div class="smooth metas">
{% if emission.categories %}
- <span class="categories ellipsis">
+ <span class="categories">
{% for category in emission.categories.all %}
- {% if forloop.counter > 1 %} - {% endif %}<span class="category"><span class="inBlock icon-{{category|slugify}}"> </span>{{category}}</span>
+ {% if forloop.counter > 1 %} - {% endif %}<span class="category">{{category}}</span>
{% endfor%}
</span>
{% endif %}
</div>
</div>
{% if emission.subtitle %}
- <div class="description ellipsis">
+ <div class="description">
{{ emission.subtitle }}
</div>
{% elif emission.text %}
- <div class="description ellipsis">
+ <div class="description">
{{ emission.text|safe|striptags|truncatewords:20}}
</div>
{% endif %}