Django 1.8 and other updates.
[wolnelektury.git] / apps / catalogue / templates / catalogue / book_wide.html
1 {% extends "catalogue/book_short.html" %}
2 {% load i18n %}
3 {% load choose_fragment download_audio tag_list custom_pdf_link_li license_icon source_name from catalogue_tags %}
4 {% load choose_cite from social_tags %}
5 {% load ssi_include from ssify %}
6
7
8 {% block box-class %}book-wide-box{% endblock %}
9
10
11 {% block cover-area-extra %}
12 {% if extra_info.license %}
13     {% license_icon extra_info.license %}
14 {% endif %}
15 {% endblock %}
16
17
18
19 {% block book-box-extra-info %}
20 {% if themes %}
21     <div class="hidden-box-wrapper" id="theme-list-wrapper">
22         <p><a class="mono hidden-box-trigger theme-list-link"
23                 href="#">{% trans "Motifs and themes" %}</a></p>
24         <div class="hidden-box">
25             <ul>
26             {% for theme in themes %}
27                 <li><a href="{% url 'book_fragments' book.slug theme.slug %}">{{ theme }} ({{ theme.count }})</a></li>
28             {% endfor %}
29             </ul>
30         </div>
31     </div>
32 {% else %}
33         <p>&nbsp;</p>
34 {% endif %}
35 {% endblock %}
36
37
38 {% block right-column %}
39 <div class="right-column">
40   <div class="quote">
41     {% choose_cite book.pk as cite_promo %}
42     {% choose_fragment book.pk unless=cite_promo as fragment_promo %}
43     {{ cite_promo.if }}
44         {% ssi_include 'social_cite' pk=cite_promo %}
45     {{ cite_promo.endif }}
46     {{ fragment_promo.if }}
47         {% ssi_include 'catalogue_fragment_promo' pk=fragment_promo %}
48     {{ fragment_promo.endif }}
49   </div>
50
51   <div class="other-tools">
52     <h2 class="mono">{% trans "See" %}</h2>
53     <ul class="plain">
54       {% if extra_info.source_url %}
55       <li><a href="{{ extra_info.source_url }}">{% trans "Source" %}</a> {% trans "of the book" %}
56         {% trans "in" %} {% source_name extra_info.source_url %}</li>
57       {% endif %}
58       <li><a href="{{ book.xml_file.url }}">{% trans "Source XML file" %}</a></li>
59       {% if extra_info.about and not hide_about %}
60       <li>{% trans "Book on" %} <a href="{{ extra_info.about }}">{% trans "Editor's Platform" %}</a></li>
61       {% endif %}
62       {% if book.gazeta_link %}
63       <li><a href="{{ book.gazeta_link }}">{% trans "Book description on Lektury.Gazeta.pl" %}</a></li>
64       {% endif %}
65       {% if book.wiki_link %}
66       <li><a href="{{ book.wiki_link }}">{% trans "Book description on Wikipedia" %}</a></li>
67       {% endif %}
68       <li><a href="{% url 'poem_from_book' book.slug %}">{% trans "Mix this book" %}</a></li>
69     </ul>
70   </div>
71   <div class="other-download">
72     <h2 class="mono">{% trans "Download" %}</h2>
73     <ul class="plain">
74       <li>
75         {% if related.media.mp3 or related.media.ogg or related.media.daisy %}
76         {% trans "Download all audiobooks for this book" %}:
77             {% download_audio book %}. 
78         {% endif %}
79       </li>
80       {% custom_pdf_link_li book %}
81     </ul>
82   </div>
83 </div>
84 {% endblock %}