1 {% load thumbnail staticfiles %}
2 <div class="newsitem-home">
4 {% if class == "special" and content.image %}
5 {% thumbnail content.image "480x320" crop="50% 25%" as im %}
6 <img class="normal" src="{{im.url}}"/>
8 {% elif content.image %}
9 {% thumbnail content.image "175x175" crop="50% 25%" as im %}
10 <img width="175" height="175" src="{{im.url}}"/>
12 {% elif content.emission.image %}
13 {% thumbnail content.emission.image "175x175" crop="50% 25%" as im %}
14 <img class="left" width="175" height="175" src="{{im.url}}"/>
17 <img class="left" width="175" height="175" src="{% static "img/actu.png" %}"/>
22 <h5 class="title">{{ content.title }}</h5>