stars and tags instead of shelves, move to social app
[wolnelektury.git] / wolnelektury / templates / catalogue / work-list.html
diff --git a/wolnelektury/templates/catalogue/work-list.html b/wolnelektury/templates/catalogue/work-list.html
new file mode 100755 (executable)
index 0000000..34ecb5f
--- /dev/null
@@ -0,0 +1,18 @@
+{% load pagination_tags %}
+{% load book_short from catalogue_tags %}
+
+{% autopaginate object_list 10 %}
+{% spaceless %}
+<ol class='work-list'>
+{% for item in object_list %}
+    <li class='{{ object_type }}-item'>
+        {% if object_type == 'Book' %}
+            {% book_short item %}
+        {% else %}
+            {{ item.short_html }}
+        {% endif %}
+    </li>
+{% endfor %}
+</ol>
+{% endspaceless %}
+{% paginate %}
\ No newline at end of file