more box fixes
[wolnelektury.git] / wolnelektury / templates / catalogue / book_wide.html
1 {% extends "catalogue/book_short.html" %}
2 {% load i18n %}
3 {% load tag_list from catalogue_tags %}
4 {% load cite_promo from social_tags %}
5
6
7 {% block box-class %}book-wide-box{% endblock %}
8
9
10 {% block book-box-extra-info %}
11 {% if themes %}
12     <div id="themes-list-wrapper">
13         <p><a class="mono" id="themes-list-toggle"
14                 href="#">{% trans "motifs and themes" %}</a></p>
15         <div id="themes-list">
16             <ul>
17             {% for theme in themes %}
18                 <li><a href="{% url book_fragments book.slug theme.slug %}">{{ theme }} ({{ theme.count }})</a></li>
19             {% endfor %}
20             </ul>
21         </div>
22     </div>
23 {% endif %}
24 {% endblock %}
25
26
27 {% block right-column %}
28 <div class="right-column">
29     <div class="quote">
30   {% cite_promo book 1 %}
31   </div>
32
33   <div class="other-tools">
34     <h2 class="mono">{% trans "See" %}</h2>
35     <ul class="plain">
36       {% if extra_info.source_url %}
37       <li><a href="{{ extra_info.source_url }}">{% trans "Source" %}</a> {% trans "of the book" %}</li>
38       {% endif %}
39       <li><a href="{{ book.xml_file.url }}">{% trans "Source XML file" %}</a></li>
40       {% if extra_info.about and not hide_about %}
41       <li>{% trans "Book on" %} <a href="{{ extra_info.about }}">{% trans "Editor's Platform" %}</a></li>
42       {% endif %}
43       {% if book.gazeta_link %}
44       <li><a href="{{ book.gazeta_link }}">{% trans "Book description on Lektury.Gazeta.pl" %}</a></li>
45       {% endif %}
46       {% if book.wiki_link %}
47       <li><a href="{{ book.wiki_link }}">{% trans "Book description on Wikipedia" %}</a></li>
48       {% endif %}
49       <li><a href="{% url poem_from_book book.slug %}">{% trans "Mix this book" %}</a></li>
50     </ul>
51   </div>
52   <div class="other-download">
53     <h2 class="mono">{% trans "Download" %}</h2>
54     <ul class="plain">
55       <li>
56         {% if related.media.mp3 or related.media.ogg %}
57         {% trans "Download all audiobooks for this book" %}: 
58         {% if related.media.mp3 %}<a href="{% url download_zip_mp3 book.slug %}">MP3</a>{% endif %}{% if related.media.mp3 and related.media.ogg %},{% endif %}
59         {% if related.media.ogg %}<a href="{% url download_zip_ogg book.slug %}">OGG</a>{% endif %}.
60         {% endif %}
61       </li>
62       <li>
63         <a href="{% url custom_pdf_form %}?slug={{book.slug}}" id="custom-pdf" class="ajaxable">{% trans "Download a custom PDF" %}</a>
64       </li>
65     </ul>
66   </div>
67 </div>
68 {% endblock %}