rearrangements: new core app, templates in apps, split settings;
[wolnelektury.git] / apps / catalogue / templates / catalogue / picture_list.html
1 {% extends "catalogue/book_list.html" %}
2 {% load i18n %}
3 {% load catalogue_tags chunks %}
4 {% load thumbnail %}
5
6 {% block bodyid %}picture-list{% endblock %}
7
8 {% block titleextra %}{% trans "Listing of all pictures" %}{% endblock %}
9
10 {% block picture_list_header %}{% trans "Listing of all pictures" %}{% endblock %}
11
12
13 {% block book_list %}
14 {% for author, group in pictures_by_author.items %}
15 <a name="{{ author.slug }}"/>
16 <div class="group">
17   <h2><a href="{{ author.get_absolute_url }}">{{ author }}</a></h2>
18   {% for picture in group %}
19   <div class="picture">
20     {% thumbnail picture.image_file "300x300" as im %}
21     <img style="float: left; margin:{{ im|margin:"300x300" }}" src="{{ im.url }}" width="{{ im.x }}" height="{{ im.y }}" />
22     {% endthumbnail %}
23     <span class="title"><a href="{{picture.get_absolute_url}}">{{picture.title}}</a></span>
24     <br class="clearboth"/>
25   </div>
26   {% endfor %}
27 </div>
28   
29 {% endfor %}
30
31 {% endblock %}
32