From 1e9f1a27617cbed759436eb4141cb3ae00b4ac80 Mon Sep 17 00:00:00 2001 From: Jannis Portmann Date: Mon, 18 Sep 2023 11:37:01 +0200 Subject: [PATCH 1/3] Fix spacing issue --- .../pflaenzli/templates/offer/search.html | 45 ++++++++++--------- .../pflaenzli/templates/user/public.html | 4 +- 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/pflaenzli/pflaenzli/templates/offer/search.html b/pflaenzli/pflaenzli/templates/offer/search.html index bd65b74..c1b5328 100644 --- a/pflaenzli/pflaenzli/templates/offer/search.html +++ b/pflaenzli/pflaenzli/templates/offer/search.html @@ -2,6 +2,7 @@ {% load static %} {% load i18n %} {% load crispy_forms_tags %} +{% load plz %} {% block title %} {% trans 'Offers' %} {% endblock %} @@ -31,30 +32,32 @@ {% if offers %}
{% for offer in offers %} -
- {% else %} diff --git a/pflaenzli/pflaenzli/templates/user/public.html b/pflaenzli/pflaenzli/templates/user/public.html index 2f1b35d..b5c2e35 100644 --- a/pflaenzli/pflaenzli/templates/user/public.html +++ b/pflaenzli/pflaenzli/templates/user/public.html @@ -36,12 +36,12 @@
- From 25d089cbdcffdc3cccc27ec1e488b38ca995230d Mon Sep 17 00:00:00 2001 From: Jannis Portmann Date: Mon, 18 Sep 2023 11:39:27 +0200 Subject: [PATCH 2/3] Remove unfinished changes --- .../pflaenzli/templates/offer/search.html | 45 +++++++++---------- .../pflaenzli/templates/user/public.html | 4 +- 2 files changed, 23 insertions(+), 26 deletions(-) diff --git a/pflaenzli/pflaenzli/templates/offer/search.html b/pflaenzli/pflaenzli/templates/offer/search.html index c1b5328..2e6c1df 100644 --- a/pflaenzli/pflaenzli/templates/offer/search.html +++ b/pflaenzli/pflaenzli/templates/offer/search.html @@ -2,7 +2,6 @@ {% load static %} {% load i18n %} {% load crispy_forms_tags %} -{% load plz %} {% block title %} {% trans 'Offers' %} {% endblock %} @@ -32,32 +31,30 @@ {% if offers %}
{% for offer in offers %} - {% with plz=offer|get_plz %} -
-
- - {% if offer.image %} - - {% else %} - - {% endif %} -
-
- {{ offer.title }}{{ offer.get_category_display }} -
-
-
- {% else %} diff --git a/pflaenzli/pflaenzli/templates/user/public.html b/pflaenzli/pflaenzli/templates/user/public.html index b5c2e35..416a270 100644 --- a/pflaenzli/pflaenzli/templates/user/public.html +++ b/pflaenzli/pflaenzli/templates/user/public.html @@ -32,7 +32,7 @@ {% endif %}
- {{ offer.title }}{{ offer.get_category_display }} + {{ offer.zipcode }}
@@ -41,7 +41,7 @@ {{ offer.user.username }}

- {{ offer.zipcode.plz }} {{ offer.zipcode.name }} + {{ offer.zipcode }}

From 9eca8d61f931757c2b91c5b31ce40eb74cb95e69 Mon Sep 17 00:00:00 2001 From: Jannis Portmann Date: Mon, 18 Sep 2023 11:43:05 +0200 Subject: [PATCH 3/3] Fix title --- pflaenzli/pflaenzli/templates/user/public.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pflaenzli/pflaenzli/templates/user/public.html b/pflaenzli/pflaenzli/templates/user/public.html index 416a270..cf16daf 100644 --- a/pflaenzli/pflaenzli/templates/user/public.html +++ b/pflaenzli/pflaenzli/templates/user/public.html @@ -32,7 +32,7 @@ {% endif %}
- {{ offer.zipcode }} + {{ offer.title }}{{ offer.get_category_display }}