changes default filesystem cache location
[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 title %}{% trans "Listing of all works on WolneLektury.pl" %}{% endblock %}
8
9 {% block body %}
10     <h1>{% block book_list_header %}{% trans "Listing of all works" %}{% endblock %}</h1>
11     <form action="{% url search %}" method="get" accept-charset="utf-8" id="search-form">
12         <p>{{ form.q }} {{ form.tags }} <input type="submit" value="{% trans "Search" %}" />
13             <strong>{% trans "or" %}</strong> {% trans "see" %}: 
14             <span class='collections'>
15                 <a href="{% url catalogue.views.book_list %}">{% trans "all books" %}</a>
16                 <a href="{% url catalogue.views.audiobook_list %}">{% trans "audiobooks" %}</a>
17                 <a href="{% url catalogue.views.daisy_list %}">{% trans "DAISY" %}</a>
18             </span></p>
19     </form>
20     <div class="column-left">{% block book_list_info %}{% endblock %}</div><div style='clear:both;'></div>
21     <a name="top">
22     <div id="book-list-nav">
23         {% trans "Table of Content" %}
24         {% for index, authors in books_nav.items %}
25                 <ul>
26                     <li><a class="book-list-index" href="#">{{ index|upper }}</a></li>
27                     <ul class="book-list-show-index">
28                     {% for author in authors %}
29                         <li><a href="#{{ author.slug }}">{{ author }}</a></li>
30                     {% endfor %}
31                     </ul>
32                 </ul>
33         {% endfor %}    
34     </div>
35     <div id="book-list">
36         {% book_tree orphans books_by_parent %}
37         {% for author, group in books_by_author.items %}
38             {% if group %}
39                 <a name="{{ author.slug }}">
40                 <div class="group">
41                     <h2><a href="{{ author.get_absolute_url }}">{{ author }}</a></h2>
42                     {% book_tree group books_by_parent %}
43                 </div>
44             {% endif %}
45         {% endfor %}
46     </div>
47     <div id="book-list-up">
48         <p><a href="#top">{% trans "↑ top ↑" %}</a></p>
49     </div>
50 {% endblock %}