picture tags, areas overhaul #1
[wolnelektury.git] / apps / catalogue / templates / catalogue / work-list.html
1 {% load pagination_tags %}
2 {% load book_short class_name 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='{% class_name item %}-item'>
10         {% if item.short_html %}
11             {{ item.short_html }}
12 {# since we are using shor_html eerywhere, is it needed anymore? #}
13         {% elif item.object_type == "Picture"  %}
14             {% picture_short item %}
15         {% else %}
16             {% book_short item %}
17         {% endif %}
18     </li>
19 {% endfor %}
20 </ol>
21 {% endspaceless %}
22 {% paginate %}