X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/45b36abf753366dd523cae85a8eced7e5c9711e0..5c13a97ebf1e00928ae582737cd66fdcab2cfcec:/wolnelektury/templates/catalogue/book_wide.html diff --git a/wolnelektury/templates/catalogue/book_wide.html b/wolnelektury/templates/catalogue/book_wide.html index da2754e8a..c778caa50 100644 --- a/wolnelektury/templates/catalogue/book_wide.html +++ b/wolnelektury/templates/catalogue/book_wide.html @@ -1,21 +1,42 @@ {% extends "catalogue/book_short.html" %} {% load i18n %} -{% load promo_fragment from catalogue_tags %} +{% load tag_list from catalogue_tags %} +{% load cite_promo from social_tags %} + {% block box-class %}book-wide-box{% 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> +{% endif %} +{% endblock %} + + {% block right-column %} <div class="right-column"> <div class="quote"> - {% promo_fragment book %} + {% cite_promo book 1 %} </div> <div class="other-tools"> <h2 class="mono">{% trans "See" %}</h2> - <ul class="inline-items"> + <ul class="plain"> {% if extra_info.source_url %} <li><a href="{{ extra_info.source_url }}">{% trans "Source" %}</a> {% trans "of the book" %}</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 %} @@ -25,11 +46,12 @@ {% 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="inline-items"> + <ul class="plain"> <li> {% if related.media.mp3 or related.media.ogg %} {% trans "Download all audiobooks for this book" %}: