new cover
[wolnelektury.git] / wolnelektury / templates / catalogue / book_list.html
1 {% extends "base.html" %}
2 {% load i18n %}
3 {% load catalogue_tags chunks %}
4
5 {% block bodyid %}book-a-list{% endblock %}
6
7 {% block titleextra %}{% trans "Listing of all works" %}{% endblock %}
8
9 {% block body %}
10     <h1>{% block book_list_header %}{% trans "Listing of all works" %}{% endblock %}</h1>
11
12     <div class="left-column"><div class="normal-text">
13         {% block book_list_info %}{% endblock %}
14     </div></div>
15
16     <div style='clear:both;'></div>
17
18     <a name="top">
19
20     <div id="book-list-nav" class="normal-text">
21         {% trans "Table of Content" %}
22         {% for index, authors in books_nav.items %}
23                 <ul>
24                     <li><a class="book-list-index" href="#">{{ index|upper }}</a></li>
25                     <ul class="book-list-show-index">
26                     {% for author in authors %}
27                         <li><a href="#{{ author.slug }}">{{ author }}</a></li>
28                     {% endfor %}
29                     </ul>
30                 </ul>
31         {% endfor %}    
32     </div>
33     <div id="book-list" class="normal-text">
34       {% block book_list %}
35         {% book_tree orphans books_by_parent %}
36         {% for author, group in books_by_author.items %}
37             {% if group %}
38                 <a name="{{ author.slug }}">
39                 <div class="group">
40                     <h2><a href="{{ author.get_absolute_url }}">{{ author }}</a></h2>
41                     {% book_tree group books_by_parent %}
42                 </div>
43             {% endif %}
44         {% endfor %}
45       {% endblock %}
46     </div>
47     <div id="book-list-up">
48         <p><a href="#top">{% trans "↑ top ↑" %}</a></p>
49     </div>
50 {% endblock %}