Merge branch 'master' of git@github.com:fnp/wolnelektury
[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>{% trans "Listing of all works" %}</h1>
11     <form action="{% url search %}" method="GET" accept-charset="utf-8" id="search-form">
12         <p>{{ form.q }} <input type="submit" value="{% trans "Search" %}" /> <strong>{% trans "or" %}</strong> <a href="{% url main_page %}">{% trans "return to main page" %}</a></p>
13     </form>
14
15     <div id="book-list">
16         {% book_tree orphans books_by_parent %}
17         {% for author, group in books_by_author.items %}
18             {% if group %}
19                 <div class="group">
20                     <h2><a href="{{ author.get_absolute_url }}">{{ author }}</a></h2>
21                     {% book_tree group books_by_parent %}
22                 </div>
23             {% endif %}
24         {% endfor %}
25     </div>
26 {% endblock %}