]> git.0d.be Git - panikweb.git/blob - panikweb/templates/combo/gallerycell.html
move static & templates to panikweb project directory
[panikweb.git] / panikweb / templates / combo / gallerycell.html
1 {% load thumbnail %}
2 {% if cell.title %}<h3>{{ cell.title }}</h3>{% endif %}
3 <div class="gallery" id="gallery-{{cell.id}}">
4 {% for image in cell.image_set.all %}
5   {% if forloop.first %}
6 <div class="first" style="display: none;">
7 <img src="#"/>
8 <span class="gallery-legend"></span>
9 </div>
10 <div>
11   {% endif %}
12 {% thumbnail image.image "200x100" crop="50% 25%" as im %}
13 {% if cell.slug == 'portrait' %}
14 {% thumbnail image.image "480x640" crop="50% 25%" as im_large %}
15 <span class="image" data-image-large="{{ im_large.url }}"><img src="{{ im.url }}"
16         class="portrait" {% if image.title %} title="{{image.title}}" {% endif %}/></span>
17 {% endthumbnail %}
18 {% else %}
19 {% thumbnail image.image "640x480" crop="50% 25%" as im_large %}
20 <span class="image" data-image-large="{{ im_large.url }}"><img src="{{ im.url }}"
21         {% if image.title %} title="{{image.title}}" {% endif %}/></span>
22 {% endthumbnail %}
23
24 {% endif %}
25 {% endthumbnail %}
26 {% endfor %}
27 </div>
28 </div>