image listings / boxes work but need polishing. started coding the viewer.
[wolnelektury.git] / apps / catalogue / templates / catalogue / work-list.html
index 19ca7c7..1541985 100755 (executable)
@@ -1,13 +1,16 @@
 {% load pagination_tags %}
 {% load book_short from catalogue_tags %}
+{% load picture_short from picture_tags %}
 
 {% autopaginate object_list 10 %}
 {% spaceless %}
 <ol class='work-list'>
 {% for item in object_list %}
-    <li class='{{ object_type }}-item'>
+    <li class='Book-item'>
         {% if item.short_html %}
             {{ item.short_html }}
+        {% elif object_type == "Picture"  %}
+            {% picture_short item %}
         {% else %}
             {% book_short item %}
         {% endif %}
@@ -15,4 +18,4 @@
 {% endfor %}
 </ol>
 {% endspaceless %}
-{% paginate %}
\ No newline at end of file
+{% paginate %}