From 07cd561683d722537e51ca728c584abb7caec92f Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 9 Dec 2025 15:45:33 +0100 Subject: [PATCH 1/2] banner fix --- src/annoy/models.py | 8 +++++++- src/annoy/templates/annoy/banner.html | 8 ++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/annoy/models.py b/src/annoy/models.py index 097872b40..6af1cc045 100644 --- a/src/annoy/models.py +++ b/src/annoy/models.py @@ -66,7 +66,13 @@ class Banner(models.Model): return self.campaign.image else: return self.image - + + def is_external(self): + return (self.url and + not self.url.startswith('/') and + not self.url.startswith('https://wolnelektury.pl/') + ) + @classmethod def choice(cls, place, request, exemptions=True, book=None): Membership = apps.get_model('club', 'Membership') diff --git a/src/annoy/templates/annoy/banner.html b/src/annoy/templates/annoy/banner.html index bfecd9d36..9a67fcdcb 100644 --- a/src/annoy/templates/annoy/banner.html +++ b/src/annoy/templates/annoy/banner.html @@ -20,7 +20,9 @@ {% if banner.background_color %}background-color: {{ banner.background_color }};{% endif %} "> {% if not banner.action_label %} - + {% endif %}
@@ -34,7 +36,9 @@
{% if banner.action_label %} -
+ {{ banner.action_label }} {% endif %} -- 2.20.1 From 9183ed20f00dfced56f0223a854ab7aa5dd5fc0c Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 12 Dec 2025 15:55:21 +0100 Subject: [PATCH 2/2] donation fixes --- .../templates/club/donation_step_base.html | 4 +++- .../static/2022/styles/layout/_checkout.scss | 18 +++++++++++------- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/src/club/templates/club/donation_step_base.html b/src/club/templates/club/donation_step_base.html index 804ace3f8..388932488 100644 --- a/src/club/templates/club/donation_step_base.html +++ b/src/club/templates/club/donation_step_base.html @@ -29,7 +29,9 @@
- Wspieraj Wolne Lektury +
+
{% chunk "donate-top" %}
diff --git a/src/wolnelektury/static/2022/styles/layout/_checkout.scss b/src/wolnelektury/static/2022/styles/layout/_checkout.scss index 28fd1ce01..6bc86d008 100644 --- a/src/wolnelektury/static/2022/styles/layout/_checkout.scss +++ b/src/wolnelektury/static/2022/styles/layout/_checkout.scss @@ -67,10 +67,13 @@ display: flex; background: #083F4D; - img { + .l-checkout__box__header__img { display: none; + background-position: center; + background-size: cover; @include rwd($break-flow) { display: block; + width: 50%; } } } @@ -330,12 +333,9 @@ } } .l-checkout__payments__box__btn-wrp { - padding: 0 20px 20px 20px; + padding: 20px; margin-bottom: 0; margin-top: auto; - @include rwd($break-flow) { - padding-top: 20px; - } } p { margin-top: 0; @@ -353,7 +353,6 @@ font-family: "Source Sans Pro",sans-serif; font-weight: bold; font-size: 44px; - line-height: 130%; letter-spacing: -0.01em; height: 90px; display: flex; @@ -370,10 +369,15 @@ text-align: center; color: #083F4D; + flex-direction: column; + @include rwd($break-flow) { + flex-direction: row; + line-height: 130%; + } + span { font-weight: 600; font-size: 25px; - line-height: 200%; letter-spacing: -0.01em; color: #92BD39; margin-left: 10px; -- 2.20.1