Merge branch 'master' into funding
[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 license_icon from catalogue_tags %}
4 {% load cite_promo from social_tags %}
5
6
7 {% block box-class %}book-wide-box{% endblock %}
8
9
10 {% block cover-area-extra %}
11 {% if extra_info.license %}
12     {% license_icon extra_info.license %}
13 {% endif %}
14 {% endblock %}
15
16
17
18 {% block book-box-extra-info %}
19 {% if themes %}
20     <div class="hidden-box-wrapper" id="theme-list-wrapper">
21         <p><a class="mono hidden-box-trigger theme-list-link"
22                 href="#">{% trans "Motifs and themes" %}</a></p>
23         <div class="hidden-box">
24             <ul>
25             {% for theme in themes %}
26                 <li><a href="{% url 'book_fragments' book.slug theme.slug %}">{{ theme }} ({{ theme.count }})</a></li>
27             {% endfor %}
28             </ul>
29         </div>
30     </div>
31 {% else %}
32         <p>&nbsp;</p>
33 {% endif %}
34 {% endblock %}
35
36
37 {% block right-column %}
38 <div class="right-column">
39     <div class="quote">
40   {% cite_promo book 1 %}
41   </div>
42
43   <div class="other-tools">
44     <h2 class="mono">{% trans "See" %}</h2>
45     <ul class="plain">
46       {% if extra_info.source_url %}
47       <li><a href="{{ extra_info.source_url }}">{% trans "Source" %}</a> {% trans "of the book" %}</li>
48       {% endif %}
49       <li><a href="{{ book.xml_file.url }}">{% trans "Source XML file" %}</a></li>
50       {% if extra_info.about and not hide_about %}
51       <li>{% trans "Book on" %} <a href="{{ extra_info.about }}">{% trans "Editor's Platform" %}</a></li>
52       {% endif %}
53       {% if book.gazeta_link %}
54       <li><a href="{{ book.gazeta_link }}">{% trans "Book description on Lektury.Gazeta.pl" %}</a></li>
55       {% endif %}
56       {% if book.wiki_link %}
57       <li><a href="{{ book.wiki_link }}">{% trans "Book description on Wikipedia" %}</a></li>
58       {% endif %}
59       <li><a href="{% url 'poem_from_book' book.slug %}">{% trans "Mix this book" %}</a></li>
60     </ul>
61   </div>
62   <div class="other-download">
63     <h2 class="mono">{% trans "Download" %}</h2>
64     <ul class="plain">
65       <li>
66         {% if related.media.mp3 or related.media.ogg or related.media.daisy %}
67         {% trans "Download all audiobooks for this book" %}:
68             {% download_audio book %}. 
69         {% endif %}
70       </li>
71       {% custom_pdf_link_li book %}
72     </ul>
73   </div>
74 </div>
75 {% endblock %}