image listings / boxes work but need polishing. started coding the viewer.
[wolnelektury.git] / apps / catalogue / templates / catalogue / work-list.html
1 {% load pagination_tags %}
2 {% load book_short from catalogue_tags %}
3 {% load picture_short from picture_tags %}
4
5 {% autopaginate object_list 10 %}
6 {% spaceless %}
7 <ol class='work-list'>
8 {% for item in object_list %}
9     <li class='Book-item'>
10         {% if item.short_html %}
11             {{ item.short_html }}
12         {% elif object_type == "Picture"  %}
13             {% picture_short item %}
14         {% else %}
15             {% book_short item %}
16         {% endif %}
17     </li>
18 {% endfor %}
19 </ol>
20 {% endspaceless %}
21 {% paginate %}