Django 1.8 and other updates.
[wolnelektury.git] / apps / catalogue / templates / catalogue / work-list.html
index 1541985..3026525 100755 (executable)
@@ -1,21 +1,19 @@
+{% spaceless %}
+
 {% load pagination_tags %}
-{% load book_short from catalogue_tags %}
-{% load picture_short from picture_tags %}
+{% load class_name from catalogue_tags %}
+{% load ssi_include from ssify %}
 
 {% autopaginate object_list 10 %}
-{% spaceless %}
+
 <ol class='work-list'>
 {% for item in object_list %}
-    <li class='Book-item'>
-        {% if item.short_html %}
-            {{ item.short_html }}
-        {% elif object_type == "Picture"  %}
-            {% picture_short item %}
-        {% else %}
-            {% book_short item %}
-        {% endif %}
+    <li class='{{ item|class_name }}-item'>
+        {% ssi_include item.short_html_url_name pk=item.pk %}
     </li>
 {% endfor %}
 </ol>
-{% endspaceless %}
+
 {% paginate %}
+
+{% endspaceless %}