custom pdf download via ajaxable
[wolnelektury.git] / wolnelektury / templates / catalogue / book_wide.html
1 {% extends "catalogue/book_short.html" %}
2 {% load i18n %}
3
4 {% block box-class %}book-wide-box{% endblock %}
5
6 {% block right-column %}
7 <div class="right-column">
8   <blockquote id="quote" class="cite-body">
9     <div>Ten, który walczy z potworami powinien zadbać, by sam nie stał się potworem. 
10     Gdy długo spoglądamy w otchłań, otchłań spogląda również w nas.</div>
11   </blockquote>
12
13   <div id="other-tools">
14     <h2 class="mono">{% trans "See" %}</h2>
15     <ul class="inline-items">
16       {% if extra_info.source_url %}
17       <li><a href="{{ extra_info.source_url }}">{% trans "Source" %}</a> {% trans "of the book" %}</li>
18       {% endif %}
19       {% if extra_info.about and not hide_about %}
20       <li>{% trans "Book on" %} <a href="{{ extra_info.about }}">{% trans "Editor's Platform" %}</a></li>
21       {% endif %}
22       {% if book.gazeta_link %}
23       <li><a href="{{ book.gazeta_link }}">{% trans "Book description on Lektury.Gazeta.pl" %}</a></li>
24       {% endif %}
25       {% if book.wiki_link %}
26       <li><a href="{{ book.wiki_link }}">{% trans "Book description on Wikipedia" %}</a></li>
27       {% endif %}
28     </ul>
29   </div>
30   <div id="other-download">
31     <h2 class="mono">{% trans "Download" %}</h2>
32     <ul class="inline-items">
33       <li>
34         {% if has_media.mp3 or has_media.ogg %}
35         {% trans "Download all audiobooks for this book" %}: 
36         {% if has_media.mp3 %}<a href="{% url download_zip_mp3 book.slug %}">MP3</a>{% endif %}{% if has_media.mp4 and has_media.ogg %},{% endif %}
37         {% if has_media.ogg %}<a href="{% url download_zip_ogg book.slug %}">OGG</a>{% endif %}.
38         {% endif %}
39       </li>
40       <li>
41         <a href="{% url custom_pdf_form %}?slug={{book.slug}}" id="custom-pdf" class="ajaxable">{% trans "Download a custom PDF" %}</a>
42       </li>
43     </ul>
44   </div>
45 </div>
46 {% endblock %}