]> git.0d.be Git - panikweb.git/blob - panikweb_templates/templates/news/in_home.html
6beb8a9a33bc495aefc90b1fd16f304198c32fe3
[panikweb.git] / panikweb_templates / templates / news / in_home.html
1 {% load thumbnail staticfiles %}
2 <div class="newsitem-home">
3                 <div class="logo">
4                 {% if class == "special" and content.image %}
5                         {% thumbnail content.image "480x320" crop="50% 25%" as im %}
6                         <img class="normal" src="{{im.url}}"/>
7                         {% endthumbnail %}
8                 {% elif content.image %}
9                         {% thumbnail content.image "175x175" crop="50% 25%" as im %}
10                         <img width="175" height="175" src="{{im.url}}"/>
11                         {% endthumbnail %}
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}}"/>
15                         {% endthumbnail %}
16                 {% else %}
17                         <img class="left" width="175" height="175" src="{% static "img/actu.png" %}"/>
18                 {% endif %}
19                 </div>
20                 <div class="content">
21                         <div class="title">
22                         <h5 class="title">{{ content.title }}</h5>
23                         </div>
24                 </div>
25         </a>
26 </div>