From a4cf06ec9135a9375fbc9ed2c697bc60ad6052b5 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 13 Sep 2022 15:56:55 +0200 Subject: [PATCH 1/1] New layout fixes. --- .../templates/catalogue/2022/book_box.html | 2 +- .../catalogue/2022/theme_detail.html | 2 +- .../templates/catalogue/preview_ad.html | 18 ++- src/catalogue/templatetags/catalogue_tags.py | 8 +- src/chunks/templates/chunks/menu.html | 4 + src/chunks/templatetags/chunks.py | 10 +- .../templates/club/2022/donation_step1.html | 3 + .../club/2022/donation_step_base.html | 23 +--- src/wolnelektury/settings/static.py | 2 + .../static/2022/images/korona.svg | 3 + src/wolnelektury/static/2022/more.scss | 61 +++++++++- src/wolnelektury/templates/2022/header.html | 113 +++++++++--------- 12 files changed, 157 insertions(+), 92 deletions(-) create mode 100644 src/wolnelektury/static/2022/images/korona.svg diff --git a/src/catalogue/templates/catalogue/2022/book_box.html b/src/catalogue/templates/catalogue/2022/book_box.html index 2d2ac05e6..db6bfb103 100644 --- a/src/catalogue/templates/catalogue/2022/book_box.html +++ b/src/catalogue/templates/catalogue/2022/book_box.html @@ -20,7 +20,7 @@ {% if book.is_book %} {% endif %} - {% if book.has_mp3 %} + {% if book.has_mp3_file %} {% endif %} {% if book.is_picture %} diff --git a/src/catalogue/templates/catalogue/2022/theme_detail.html b/src/catalogue/templates/catalogue/2022/theme_detail.html index 622b6b521..71ec04660 100644 --- a/src/catalogue/templates/catalogue/2022/theme_detail.html +++ b/src/catalogue/templates/catalogue/2022/theme_detail.html @@ -57,7 +57,7 @@
- {% if fragment.book.has_mp3 %} + {% if fragment.book.has_mp3_file %} {% endif %}
diff --git a/src/catalogue/templates/catalogue/preview_ad.html b/src/catalogue/templates/catalogue/preview_ad.html index 33ea77329..85b4ed2ff 100644 --- a/src/catalogue/templates/catalogue/preview_ad.html +++ b/src/catalogue/templates/catalogue/preview_ad.html @@ -1,8 +1,18 @@ {% if book %} -

- Prapremiera! - Dziękujemy za wsparcie – przeczytaj w prezencie już dzisiaj! -

+