rearrangements: new core app, templates in apps, split settings;
[wolnelektury.git] / apps / catalogue / 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 class="hidden-box-wrapper" id="theme-list-wrapper">
13         <p><a class="mono hidden-box-trigger theme-list-link"
14                 href="#">{% trans "Motifs and themes" %}</a></p>
15         <div class="hidden-box">
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 {% else %}
24         <p>&nbsp;</p>
25 {% endif %}
26 {% endblock %}
27
28
29 {% block right-column %}
30 <div class="right-column">
31     <div class="quote">
32   {% cite_promo book 1 %}
33   </div>
34
35   <div class="other-tools">
36     <h2 class="mono">{% trans "See" %}</h2>
37     <ul class="plain">
38       {% if extra_info.source_url %}
39       <li><a href="{{ extra_info.source_url }}">{% trans "Source" %}</a> {% trans "of the book" %}</li>
40       {% endif %}
41       <li><a href="{{ book.xml_file.url }}">{% trans "Source XML file" %}</a></li>
42       {% if extra_info.about and not hide_about %}
43       <li>{% trans "Book on" %} <a href="{{ extra_info.about }}">{% trans "Editor's Platform" %}</a></li>
44       {% endif %}
45       {% if book.gazeta_link %}
46       <li><a href="{{ book.gazeta_link }}">{% trans "Book description on Lektury.Gazeta.pl" %}</a></li>
47       {% endif %}
48       {% if book.wiki_link %}
49       <li><a href="{{ book.wiki_link }}">{% trans "Book description on Wikipedia" %}</a></li>
50       {% endif %}
51       <li><a href="{% url poem_from_book book.slug %}">{% trans "Mix this book" %}</a></li>
52     </ul>
53   </div>
54   <div class="other-download">
55         {% if related.media.mp3 or related.media.ogg %}
56     <h2 class="mono">{% trans "Download" %}</h2>
57     <ul class="plain">
58       <li>
59         {% if related.media.mp3 or related.media.ogg %}
60         {% trans "Download all audiobooks for this book" %}: 
61         {% if related.media.mp3 %}<a href="{% url download_zip_mp3 book.slug %}">MP3</a>{% endif %}{% if related.media.mp3 and related.media.ogg %},{% endif %}
62         {% if related.media.ogg %}<a href="{% url download_zip_ogg book.slug %}">OGG</a>{% endif %}.
63         {% endif %}
64       </li>
65       {% comment %}
66       <li>
67         <a href="{% url custom_pdf_form %}?slug={{book.slug}}" id="custom-pdf" class="ajaxable">{% trans "Download a custom PDF" %}</a>
68       </li>
69       {% endcomment %}
70     </ul>
71     {% endif %}
72   </div>
73 </div>
74 {% endblock %}