book detail page - now with media / custom pdf
[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="column-left">{% block book_list_info %}{% endblock %}</div><div style='clear:both;'></div>
13     <a name="top">
14     <div id="book-list-nav">
15         {% trans "Table of Content" %}
16         {% for index, authors in books_nav.items %}
17                 <ul>
18                     <li><a class="book-list-index" href="#">{{ index|upper }}</a></li>
19                     <ul class="book-list-show-index">
20                     {% for author in authors %}
21                         <li><a href="#{{ author.slug }}">{{ author }}</a></li>
22                     {% endfor %}
23                     </ul>
24                 </ul>
25         {% endfor %}    
26     </div>
27     <div id="book-list">
28       {% block book_list %}
29         {% book_tree orphans books_by_parent %}
30         {% for author, group in books_by_author.items %}
31             {% if group %}
32                 <a name="{{ author.slug }}">
33                 <div class="group">
34                     <h2><a href="{{ author.get_absolute_url }}">{{ author }}</a></h2>
35                     {% book_tree group books_by_parent %}
36                 </div>
37             {% endif %}
38         {% endfor %}
39       {% endblock %}
40     </div>
41     <div id="book-list-up">
42         <p><a href="#top">{% trans "↑ top ↑" %}</a></p>
43     </div>
44 {% endblock %}