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