b9e95d0f7ae422b69ad9621c0fbbbefae3a3e0b5
[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         <p>Na podstawie: {{ extra_info.source_name }}</p>
16         {% if book.has_description %}
17             <div id="description">
18                 {{ book.description|safe }}
19             </div>
20             <div id="toggle-description"><p>Zwiń opis ▲</p></div>
21         {% endif %}
22         <div id="formats">
23             <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>
24             <div class="clearboth"></div>
25             <div class="wrap">
26             {% if book.html_file %}
27                 <a href="{% url book_text book.slug %}">Czytaj online</a>
28             {% endif %}
29             {% if book.pdf_file %}
30                 <a href="{{ book.pdf_file.url }}">Pobierz plik PDF</a>
31             {% endif %}
32             {% if book.odt_file %}
33                 <a href="{{ book.odt_file.url }}">Pobierz plik ODT</a>
34             {% endif %}
35             {% if book.txt_file %}
36                 <a href="{{ book.txt_file.url }}">Pobierz plik TXT</a>
37             {% endif %}
38             {% if book.mp3_file and book.ogg_file %}
39             <div id="czytamy-sluchajac-info">
40                     <a href="http://czytamysluchajac.pl/" id="czytamysluchajac-logo"><img src="/media/img/czytamysluchajac-logo-small.png" /></a>     
41                     <p>Czyta: {{ book.get_extra_info_value.artist_name }}</p>
42                     <p>Reżyseruje: {{ book.get_extra_info_value.director_name }}</p>
43                 </div>
44                 <a href="{{ book.mp3_file.url }}">Pobierz plik MP3</a>
45                 <a href="{{ book.ogg_file.url }}">Pobierz plik Ogg Vorbis</a>
46                 <object type="application/x-shockwave-flash" style="margin-top: 0.5em" data="/media/player.swf" width="426" height="20">
47                     <param name="movie" value="/media/player.swf" />
48                     <param name="bgcolor" value="#ffffff" />
49                     <param name="FlashVars" value="mp3={{ book.mp3_file.url }}&amp;width=426&amp;showvolume=1&amp;bgcolor1=eeeeee&amp;bgcolor2=eeeeee&amp;buttoncolor=666666" />
50                 </object>
51             {% endif %}
52             </div>
53         </div>
54     
55         {% if book_children %}
56         {% autopaginate book_children 10 %}
57         <div id="book-children">
58             <ol>
59             {% for book in book_children %}
60                 <li>{{ book.short_html }}</li>
61             {% endfor %}
62             </ol>
63         </div>
64         {% paginate %}
65         {% endif %}
66     
67     </div>
68         
69     <div id="tags-list">
70         <div id="book-info">
71             <h2>O utworze</h2>
72             <ul>
73                 <li>
74                     Autor: 
75                     {% for tag in categories.author %}
76                     <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
77                     {% endfor %}
78                 </li>
79                 <li>
80                     Epoka:
81                     {% for tag in categories.epoch %}
82                     <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
83                     {% endfor %}
84                 </li>
85                 <li>
86                     Rodzaj:
87                     {% for tag in categories.kind %}
88                     <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
89                     {% endfor %}
90                 </li>
91                 <li>
92                     Gatunek:
93                     {% for tag in categories.genre %}
94                     <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
95                     {% endfor %}
96                 </li>
97             </ul>
98             <h2>W innych miejscach</h2>
99             <ul>
100                 <li><a href="{{ extra_info.about }}">Lektura na wiki projektu</a></li>
101                 <li><a href="{{ extra_info.source_url }}">Lektura w CBN Polona</a></li>
102                 {% if book.gazeta_link %}
103                 <li><a href="{{ book.gazeta_link }}">Opis lektury w Lektury.Gazeta.pl</a></li>
104                 {% endif %}
105                 {% if book.wiki_link %}
106                 <li><a href="{{ book.wiki_link }}">Opis lektury w Wikipedii</a></li>
107                 {% endif %}
108             </ul>
109         </div>
110         <div id="themes-list">
111             <h2>Motywy w utworze</h2>
112             <ul>
113             {% for theme in book_themes %}
114                 <li><a href="{% url book_fragments book.slug,theme.slug %}">{{ theme }} ({{ theme.count }})</a></li>
115             {% endfor %}
116             </ul>
117         </div>
118         <div class="clearboth"></div>
119     </div>
120     <div id="set-window">
121         <div class="header"><a href="#" class="jqmClose">Zamknij</a></div>
122         <div class="target">
123             <p><img src="/media/img/indicator.gif" alt="*"/> Ładowanie</p>
124         </div>
125     </div>
126 {% endblock %}