]> git.0d.be Git - panikweb-esperanzah.git/blob - espeweb/templates/panikombo/topik-cell.html
mutate into an addon module for panikweb
[panikweb-esperanzah.git] / espeweb / templates / panikombo / topik-cell.html
1 {% load thumbnail %}
2 {% if cell.topik %}
3 <div class="topikcellcontent topik-{{cell.slug}}">
4 <a class="block cf" href="{{cell.topik.page.get_online_url}}">
5 <span class="logo">
6 {% if cell.slug == "large" %}
7 {% thumbnail cell.topik.image "800x450" crop="50% 25%" as im %}
8 <div class="logo">
9 <img class="normal" src="{{im.url}}"/>
10 </div>
11 {% endthumbnail %}
12 {% else %}
13 {% thumbnail cell.topik.image "480x320" crop="50% 25%" as im %}
14 <div class="logo">
15 <img class="normal" src="{{im.url}}"/>
16 </div>
17 {% endthumbnail %}
18 {% endif %}
19 </span>
20 <div>
21   {% if cell.slug == "large" %}
22   <h2>{{cell.topik.page.title}}</h2>
23   {% else %}
24   <h5>{{cell.topik.page.title}}</h5>
25   {% endif %}
26   <div class="description">
27   {% if cell.slug == "large" %}
28     {{cell.text|safe}}
29   {% else %}
30     {{cell.text|safe|striptags|truncatewords:75}}
31   {% endif %}
32   </div>
33 </div>
34 </a>
35 </div>
36 {% endif %}