Annoying fixes.
[wolnelektury.git] / src / catalogue / templates / catalogue / book_wide.html
index b84acdb..b4faeab 100644 (file)
@@ -1,6 +1,6 @@
 {% extends "catalogue/book_short.html" %}
 {% load i18n %}
-{% load choose_fragment download_audio tag_list custom_pdf_link_li license_icon source_name from catalogue_tags %}
+{% load choose_fragment license_icon from catalogue_tags %}
 {% load choose_cite from social_tags %}
 {% load ssi_include from ssify %}
 
@@ -9,76 +9,32 @@
 
 
 {% 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">
-        <p><a class="mono hidden-box-trigger theme-list-link"
-                href="#">{% trans "Motifs and themes" %}</a></p>
-        <div class="hidden-box">
-            <ul>
-            {% for theme in themes %}
-                <li><a href="{% url 'book_fragments' book.slug theme.slug %}">{{ theme }} ({{ theme.count }})</a></li>
-            {% endfor %}
-            </ul>
-        </div>
-    </div>
-{% else %}
-       <p>&nbsp;</p>
-{% endif %}
+  {% if book.extra_info.license %}
+    {% license_icon book.extra_info.license %}
+  {% endif %}
 {% endblock %}
 
 
 {% block right-column %}
-<div class="right-column">
-  <div class="quote">
-    {% choose_cite book.pk as cite_promo %}
-    {% choose_fragment book.pk unless=cite_promo as fragment_promo %}
-    {{ cite_promo.if }}
+  <div class="right-column">
+    <div class="quote">
+      {% choose_cite book.pk as cite_promo %}
+      {% choose_fragment book.pk unless=cite_promo as fragment_promo %}
+      {{ cite_promo.if }}
         {% ssi_include 'social_cite' pk=cite_promo %}
-    {{ cite_promo.endif }}
-    {{ fragment_promo.if }}
+      {{ cite_promo.endif }}
+      {{ fragment_promo.if }}
         {% ssi_include 'catalogue_fragment_promo' pk=fragment_promo %}
-    {{ fragment_promo.endif }}
+      {{ fragment_promo.endif }}
+    </div>
+    {% include 'catalogue/snippets/jplayer.html' %}
   </div>
+{% endblock %}
 
-  <div class="other-tools">
-    <h2 class="mono">{% trans "See" %}</h2>
-    <ul class="plain">
-      {% if extra_info.source_url %}
-      <li><a href="{{ extra_info.source_url }}">{% trans "Source" %}</a> {% trans "of the book" %}
-        {% trans "in" %} {% source_name extra_info.source_url %}</li>
-      {% endif %}
-      <li><a href="{{ book.xml_file.url }}">{% trans "Source XML file" %}</a></li>
-      {% if extra_info.about and not hide_about %}
-      <li>{% trans "Book on" %} <a href="{{ extra_info.about }}">{% trans "Editor's Platform" %}</a></li>
-      {% endif %}
-      {% if book.gazeta_link %}
-      <li><a href="{{ book.gazeta_link }}">{% trans "Book description on Lektury.Gazeta.pl" %}</a></li>
-      {% endif %}
-      {% 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>
-    </ul>
-  </div>
-  <div class="other-download">
-    <h2 class="mono">{% trans "Download" %}</h2>
-    <ul class="plain">
-      <li>
-       {% if related.media.mp3 or related.media.ogg or related.media.daisy %}
-        {% trans "Download all audiobooks for this book" %}:
-           {% download_audio book %}. 
-       {% endif %}
-      </li>
-      {% custom_pdf_link_li book %}
-    </ul>
-  </div>
-</div>
+
+{% block book-box-body-pre %}
+  {% include "catalogue/snippets/like_button.html" %}
+{% endblock %}
+
+{% block book-box-pre %}
 {% endblock %}