Merge branch 'master' of https://github.com/fnp/wolnelektury
[wolnelektury.git] / apps / catalogue / templates / catalogue / book_wide.html
1 {% extends "catalogue/book_short.html" %}
2 {% load i18n %}
3 {% load download_audio tag_list custom_pdf_link_li 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     <h2 class="mono">{% trans "Download" %}</h2>
56     <ul class="plain">
57       <li>
58         {% if related.media.mp3 or related.media.ogg or related.media.daisy %}
59         {% trans "Download all audiobooks for this book" %}:
60             {% download_audio book %}. 
61         {% endif %}
62       </li>
63       {% custom_pdf_link_li book %}
64     </ul>
65   </div>
66 </div>
67 {% endblock %}