Generally working version.
[wolnelektury.git] / src / catalogue / templates / catalogue / plain_list.html
1 {% spaceless %}
2 {% load catalogue_tags %}
3
4
5 <div class='{% if paged %}plain-list-paged {% endif %}plain-list-container white-box'>
6 <div class='plain-list' style=''>
7 {% for initial, object_list in names %}
8     {% if initial %}
9         <p class="header">{{ initial }}</p>
10     {% endif %}
11     {% for item in object_list %}
12         <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>
13     {% endfor %}
14 {% endfor %}
15 </div>
16 <div class="pager"></div>
17 </div>
18
19 {% endspaceless %}