From: Radek Czajka Date: Thu, 23 Jul 2020 12:07:43 +0000 (+0200) Subject: Fixes #4084: cover on book page links to html. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/42ee328f2c761f8453cd3a858b05410499a7cc9a?ds=sidebyside Fixes #4084: cover on book page links to html. --- diff --git a/src/catalogue/templates/catalogue/book_short.html b/src/catalogue/templates/catalogue/book_short.html index 3586b2ec3..0c631791a 100644 --- a/src/catalogue/templates/catalogue/book_short.html +++ b/src/catalogue/templates/catalogue/book_short.html @@ -22,7 +22,7 @@
{% if book.cover_thumb %} - + Cover {% endif %} diff --git a/src/catalogue/templates/catalogue/book_wide.html b/src/catalogue/templates/catalogue/book_wide.html index 7721c2376..26b085ad4 100644 --- a/src/catalogue/templates/catalogue/book_wide.html +++ b/src/catalogue/templates/catalogue/book_wide.html @@ -7,6 +7,9 @@ {% block box-class %}book-wide-box{% endblock %} +{% block cover-link %}{% url 'book_text' book.get_first_text.slug %}{% endblock %} + + {% block cover-area-extra %} {% with license=book.get_extra_info_json.license %} {% if license %}