From: Radek Czajka Date: Mon, 5 Jun 2023 13:38:34 +0000 (+0200) Subject: Switch cover. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/a79b274856788fd355c87980186d76ff5a7f9cd6?ds=sidebyside Switch cover. --- diff --git a/src/catalogue/templates/catalogue/book_mini_box.html b/src/catalogue/templates/catalogue/book_mini_box.html index b74d6519f..c9e324b53 100644 --- a/src/catalogue/templates/catalogue/book_mini_box.html +++ b/src/catalogue/templates/catalogue/book_mini_box.html @@ -1,12 +1,13 @@ {% spaceless %} + {% load thumbnail %} {% with book.author_unicode as author %}
{% endwith %} -{% endspaceless %} \ No newline at end of file +{% endspaceless %} diff --git a/src/catalogue/templates/catalogue/book_short.html b/src/catalogue/templates/catalogue/book_short.html index 6f88cf0b6..9c2e6a03b 100644 --- a/src/catalogue/templates/catalogue/book_short.html +++ b/src/catalogue/templates/catalogue/book_short.html @@ -1,5 +1,6 @@ {% spaceless %} {% load i18n %} + {% load thumbnail %} {% load cache %} {% load catalogue_tags %} {% load book_shelf_tags from social_tags %} @@ -21,9 +22,9 @@ {% endblock %}
- {% if book.cover_thumb %} + {% if book.cover_clean %} - Cover + Cover {% endif %} {% block cover-area-extra %}{% endblock %} diff --git a/src/catalogue/templates/catalogue/book_text.html b/src/catalogue/templates/catalogue/book_text.html index 70915da13..758c8cb81 100644 --- a/src/catalogue/templates/catalogue/book_text.html +++ b/src/catalogue/templates/catalogue/book_text.html @@ -22,7 +22,7 @@
  • {% trans "Click to download" %}: - {{ book.pretty_title }} diff --git a/src/catalogue/templates/catalogue/collection_box.html b/src/catalogue/templates/catalogue/collection_box.html index c19ea8d54..ec79ca617 100644 --- a/src/catalogue/templates/catalogue/collection_box.html +++ b/src/catalogue/templates/catalogue/collection_box.html @@ -1,5 +1,6 @@ {% spaceless %} {% load i18n %} + {% load thumbnail %}

    {{ collection }}

    @@ -10,7 +11,7 @@
    {% for book in collection.get_books|slice:":6" %} - {{ book.pretty_title }} + {{ book.pretty_title }} {% endfor %}
    diff --git a/src/wolnelektury/views.py b/src/wolnelektury/views.py index 9f099bd3a..a0e1ae456 100644 --- a/src/wolnelektury/views.py +++ b/src/wolnelektury/views.py @@ -47,7 +47,7 @@ def main_page(request): return main_page_2022(request) ctx = { - 'last_published': Book.objects.exclude(cover_thumb='').filter(findable=True, parent=None).order_by('-created_at')[:6], + 'last_published': Book.objects.exclude(cover_clean='').filter(findable=True, parent=None).order_by('-created_at')[:6], 'theme_books': [], }