Annoying fixes.
[wolnelektury.git] / src / catalogue / templates / catalogue / work-list.html
1 {% spaceless %}
2
3   {% load cache %}
4   {% load pagination_tags %}
5   {% load class_name from catalogue_tags %}
6   {% load status from catalogue_tags %}
7   {% load ssi_include from ssify %}
8
9   {% autopaginate object_list 10 %}
10
11   <ol class='work-list'>
12     {% for item in object_list %}
13       <li class='{{ item|class_name }}-item'>
14         {% if item|class_name == 'Book' %}
15           {% include "catalogue/book_short.html" with book=item %}
16         {% else %}
17           {% ssi_include item.short_html_url_name pk=item.pk %}
18         {% endif %}
19       </li>
20     {% endfor %}
21   </ol>
22
23   {% paginate %}
24
25 {% endspaceless %}