#1000: remove buggy links to source on wiki
[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     <a name="top">
21     <div id="book-list-nav">
22         {% trans "Table of Content" %}
23         {% for index, authors in books_nav.items %}
24                 <ul>
25                     <li><a class="book-list-index" href="#">{{ index|upper }}</a></li>
26                     <ul class="book-list-show-index">
27                     {% for author in authors %}
28                         <li><a href="#{{ author.slug }}">{{ author }}</a></li>
29                     {% endfor %}
30                     </ul>
31                 </ul>
32         {% endfor %}    
33     </div>
34     <div id="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     </div>
46     <div id="book-list-up">
47         <p><a href="#top">{% trans "↑ top ↑" %}</a></p>
48     </div>
49 {% endblock %}