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