Added Czytamy Słuchając info to main page.
[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: {{ book.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                 <a href="http://czytamysluchajac.pl/" id="czytamysluchajac-logo"><img src="/media/img/czytamysluchajac-logo-small.png" /></a>
40                 <a href="{{ book.mp3_file.url }}">Pobierz plik MP3</a>
41                 <a href="{{ book.ogg_file.url }}">Pobierz plik Ogg Vorbis</a>
42                 <object type="application/x-shockwave-flash" data="/media/player.swf" width="426" height="20">
43                     <param name="movie" value="/media/player.swf" />
44                     <param name="bgcolor" value="#ffffff" />
45                     <param name="FlashVars" value="mp3={{ book.mp3_file.url }}&amp;width=426&amp;showvolume=1&amp;bgcolor1=eeeeee&amp;bgcolor2=eeeeee&amp;buttoncolor=666666" />
46                 </object>
47             {% endif %}
48             </div>
49         </div>
50     
51         {% if book_children %}
52         {% autopaginate book_children 10 %}
53         <div id="book-children">
54             <ol>
55             {% for book in book_children %}
56                 <li>{{ book.short_html }}</li>
57             {% endfor %}
58             </ol>
59         </div>
60         {% paginate %}
61         {% endif %}
62     
63     </div>
64         
65     <div id="tags-list">
66         <div id="book-info">
67             <h2>O utworze</h2>
68             <ul>
69                 <li>
70                     Autor: 
71                     {% for tag in categories.author %}
72                     <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
73                     {% endfor %}
74                 </li>
75                 <li>
76                     Epoka:
77                     {% for tag in categories.epoch %}
78                     <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
79                     {% endfor %}
80                 </li>
81                 <li>
82                     Rodzaj:
83                     {% for tag in categories.kind %}
84                     <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
85                     {% endfor %}
86                 </li>
87                 <li>
88                     Gatunek:
89                     {% for tag in categories.genre %}
90                     <a href="{{ tag.get_absolute_url }}">{{ tag }}</a>
91                     {% endfor %}
92                 </li>
93                 <li><a href="{{ book.extra_info.about }}">Lektura na wiki projektu</a></li>
94                 <li><a href="{{ book.extra_info.source_url }}">Lektura w CBN Polona</a></li>
95                 <li><a href="{{ book.xml_file.url }}">Kod źródłowy utworu (XML)</a></li>
96             </ul>
97         </div>
98         <div id="themes-list">
99             <h2>Motywy w utworze</h2>
100             <ul>
101             {% for theme in book_themes %}
102                 <li><a href="{% url book_fragments book.slug,theme.slug %}">{{ theme }} ({{ theme.count }})</a></li>
103             {% endfor %}
104             </ul>
105         </div>
106         <div class="clearboth"></div>
107     </div>
108     <div id="set-window">
109         <div class="header"><a href="#" class="jqmClose">Zamknij</a></div>
110         <div class="target">
111             <p><img src="/media/img/indicator.gif" alt="*"/> Ładowanie</p>
112         </div>
113     </div>
114 {% endblock %}