Added "delete" button to book banners if owner of viewed shelf is the current user...
[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             <ul>
23             {% if book.html_file %}
24                 <li><a href="{% url book_text book.slug %}">Czytaj online</a></li>
25             {% endif %}
26             {% if book.pdf_file %}
27                 <li><a href="{{ book.pdf_file.url }}">Pobierz plik PDF</a></li>
28             {% endif %}
29             {% if book.odt_file %}
30                 <li><a href="{{ book.odt_file.url }}">Pobierz plik ODT</a></li>
31             {% endif %}
32             {% if book.txt_file %}
33                 <li><a href="{{ book.txt_file.url }}">Pobierz plik TXT</a></li>
34             {% endif %}
35             </ul>
36         </div>
37     
38         {% if book_children %}
39         {% autopaginate book_children 10 %}
40         <div id="book-children">
41             <ol>
42             {% for book in book_children %}
43                 <li>{{ book.short_html }}</li>
44             {% endfor %}
45             </ol>
46         </div>
47         {% paginate %}
48         {% endif %}
49     
50     </div>
51         
52     <div id="tags-list">
53         <div id="book-info">
54             <h2>O utworze</h2>
55             <ul>
56                 <li>
57                     Autor: 
58                     {% for tag in categories.author %}
59                     <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
60                     {% endfor %}
61                 </li>
62                 <li>
63                     Epoka:
64                     {% for tag in categories.epoch %}
65                     <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
66                     {% endfor %}
67                 </li>
68                 <li>
69                     Rodzaj:
70                     {% for tag in categories.kind %}
71                     <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
72                     {% endfor %}
73                 </li>
74                 <li>
75                     Gatunek:
76                     {% for tag in categories.genre %}
77                     <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
78                     {% endfor %}
79                 </li>
80             </ul>
81         </div>
82         <div id="themes-list">
83             {% if categories.theme %}
84                 <h2>Motywy w utworze</h2>
85                 <ul>
86                 {% for theme in categories.theme %}
87                     <li><a href="{{ theme.get_absolute_url }}">{{ theme }}</a></li>
88                 {% endfor %}
89                 </ul>
90             {% endif %}
91         </div>
92         <div class="clearboth"></div>
93     </div>
94     <div id="set-window">
95         <div class="header"><a href="#" class="jqmClose">Zamknij</a></div>
96         <div class="target">
97             <p><img src="/media/img/indicator.gif" alt="*"/> Ładowanie</p>
98         </div>
99     </div>
100 {% endblock %}