]> git.0d.be Git - panikweb-esperanzah.git/blob - panikweb/templates/combo/gallery.html
settings: declare PROJECT_PATH
[panikweb-esperanzah.git] / panikweb / templates / combo / gallery.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 "400x400" crop="50% 50%" as im %}
13 {% thumbnail image.image "1000x600" crop="50% 25%" as im_large %}
14 <span class="image" data-image-large="{{ im_large.url }}"><img src="{{ im.url }}"
15   {% if image.title %}title="{{image.title}}"{% endif %}>
16   {% if image.title %}<span class="title">{{image.title}}</span>{% endif %}</span>
17 </span>
18 {% endthumbnail %}
19 {% endthumbnail %}
20 {% endfor %}
21 </div>
22 </div>