Generally working version.
[wolnelektury.git] / src / catalogue / templates / catalogue / plain_list.html
diff --git a/src/catalogue/templates/catalogue/plain_list.html b/src/catalogue/templates/catalogue/plain_list.html
new file mode 100644 (file)
index 0000000..276e55e
--- /dev/null
@@ -0,0 +1,19 @@
+{% spaceless %}
+{% load catalogue_tags %}
+
+
+<div class='{% if paged %}plain-list-paged {% endif %}plain-list-container white-box'>
+<div class='plain-list' style=''>
+{% for initial, object_list in names %}
+    {% if initial %}
+        <p class="header">{{ initial }}</p>
+    {% endif %}
+    {% for item in object_list %}
+        <p><a href="{% if book %}{% url 'book_fragments' book.slug item.slug %}{% elif choice %}{% if gallery %}{% catalogue_url_gallery choice item %}{% else %}{% catalogue_url choice item %}{% endif %}{% elif gallery %}{{ item.get_absolute_gallery_url }}{% else %}{{ item.get_absolute_url }}{% endif %}">{{ item }}{% if item.count %}&nbsp;({{ item.count}}){% endif %}</a></p>
+    {% endfor %}
+{% endfor %}
+</div>
+<div class="pager"></div>
+</div>
+
+{% endspaceless %}