Upgrade to Django 1.5.
[wolnelektury.git] / apps / catalogue / templates / catalogue / book_wide.html
index 9213560..13df555 100644 (file)
@@ -1,12 +1,20 @@
 {% extends "catalogue/book_short.html" %}
 {% load i18n %}
-{% load download_audio tag_list from catalogue_tags %}
+{% load download_audio tag_list custom_pdf_link_li license_icon from catalogue_tags %}
 {% load cite_promo from social_tags %}
 
 
 {% block box-class %}book-wide-box{% endblock %}
 
 
+{% block cover-area-extra %}
+{% if extra_info.license %}
+    {% license_icon extra_info.license %}
+{% endif %}
+{% endblock %}
+
+
+
 {% block book-box-extra-info %}
 {% if themes %}
     <div class="hidden-box-wrapper" id="theme-list-wrapper">
@@ -15,7 +23,7 @@
         <div class="hidden-box">
             <ul>
             {% for theme in themes %}
-                <li><a href="{% url book_fragments book.slug theme.slug %}">{{ theme }} ({{ theme.count }})</a></li>
+                <li><a href="{% url 'book_fragments' book.slug theme.slug %}">{{ theme }} ({{ theme.count }})</a></li>
             {% endfor %}
             </ul>
         </div>
@@ -48,7 +56,7 @@
       {% if book.wiki_link %}
       <li><a href="{{ book.wiki_link }}">{% trans "Book description on Wikipedia" %}</a></li>
       {% endif %}
-      <li><a href="{% url poem_from_book book.slug %}">{% trans "Mix this book" %}</a></li>
+      <li><a href="{% url 'poem_from_book' book.slug %}">{% trans "Mix this book" %}</a></li>
     </ul>
   </div>
   <div class="other-download">
@@ -60,9 +68,7 @@
            {% download_audio book %}. 
        {% endif %}
       </li>
-      <li>
-       <a href="{% url custom_pdf_form book.slug %}" id="custom-pdf" class="ajaxable">{% trans "Download a custom PDF" %}</a>
-      </li>
+      {% custom_pdf_link_li book %}
     </ul>
   </div>
 </div>