Added counts to book_sets.html and user_shelves.html templates.
[wolnelektury.git] / wolnelektury / templates / catalogue / book_detail.html
1 {% extends "base.html" %}
2 {% load catalogue_tags pagination_tags %}
3
4 {% block title %}Lektura {{ book.title }} w WolneLektury.pl{% endblock %}
5
6 {% block bodyid %}book-detail{% endblock %}
7
8 {% block body %}
9     <h1>{{ book.title }}, {{ categories.author|join:", " }}</h1>
10     <form action="{% url search %}" method="get" accept-charset="utf-8" id="search-form">
11         <p>{{ form.q }} <input type="submit" value="Szukaj" /> <strong>lub</strong> <a href="{% url main_page %}">wróć do strony głównej</a></p>
12     </form>
13     
14     <div id="books-list">
15         {% if book.has_description %}
16             <div id="description">
17                 {{ book.description|safe }}
18             </div>
19             <div id="toggle-description"><p>Zwiń opis ▲</p></div>
20         {% endif %}
21         <div id="formats">
22             <p class="change-sets">Wrzuć lekturę <span><a href="{% url catalogue.views.book_sets book.slug %}" class="jqm-trigger">na półkę!</a></span></p>
23             <div class="clearboth"></div>
24             <div class="wrap">
25             {% if book.html_file %}
26                 <a href="{% url book_text book.slug %}">Czytaj online</a>
27             {% endif %}
28             {% if book.pdf_file %}
29                 <a href="{{ book.pdf_file.url }}">Pobierz plik PDF</a>
30             {% endif %}
31             {% if book.odt_file %}
32                 <a href="{{ book.odt_file.url }}">Pobierz plik ODT</a>
33             {% endif %}
34             {% if book.txt_file %}
35                 <a href="{{ book.txt_file.url }}">Pobierz plik TXT</a>
36             {% endif %}
37             </div>
38         </div>
39     
40         {% if book_children %}
41         {% autopaginate book_children 10 %}
42         <div id="book-children">
43             <ol>
44             {% for book in book_children %}
45                 <li>{{ book.short_html }}</li>
46             {% endfor %}
47             </ol>
48         </div>
49         {% paginate %}
50         {% endif %}
51     
52     </div>
53         
54     <div id="tags-list">
55         <div id="book-info">
56             <h2>O utworze</h2>
57             <ul>
58                 <li>
59                     Autor: 
60                     {% for tag in categories.author %}
61                     <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
62                     {% endfor %}
63                 </li>
64                 <li>
65                     Epoka:
66                     {% for tag in categories.epoch %}
67                     <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
68                     {% endfor %}
69                 </li>
70                 <li>
71                     Rodzaj:
72                     {% for tag in categories.kind %}
73                     <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
74                     {% endfor %}
75                 </li>
76                 <li>
77                     Gatunek:
78                     {% for tag in categories.genre %}
79                     <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
80                     {% endfor %}
81                 </li>
82             </ul>
83         </div>
84         <div id="themes-list">
85             {% if categories.theme %}
86                 <h2>Motywy w utworze</h2>
87                 <ul>
88                 {% for theme in categories.theme %}
89                     <li><a href="{{ theme.get_absolute_url }}">{{ theme }}</a></li>
90                 {% endfor %}
91                 </ul>
92             {% endif %}
93         </div>
94         <div class="clearboth"></div>
95     </div>
96     <div id="set-window">
97         <div class="header"><a href="#" class="jqmClose">Zamknij</a></div>
98         <div class="target">
99             <p><img src="/media/img/indicator.gif" alt="*"/> Ładowanie</p>
100         </div>
101     </div>
102 {% endblock %}