From 39d7675e145bafe1721b66fe8487131031009e3f Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Wed, 28 Aug 2024 13:37:56 +0200 Subject: [PATCH] make markup more readable --- .../event/fragment_product_list.html | 21 +++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html b/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html index 3c4d60212..1414ecd57 100644 --- a/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html +++ b/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html @@ -6,12 +6,21 @@ {% load eventsignal %} {% load rich_text %} {% for tup in items_by_category %} -
-

- {% if tup.0 %}{{ tup.0.name }}{% else %}{% trans "Uncategorized items" %}{% endif %} -

- {% if tup.0.description %} -
{{ tup.0.description|localize|rich_text }}
+
+ {% if tup.0 %} +

{{ tup.0.name }}

+ {% if tup.0.description %} +
{{ tup.0.description|localize|rich_text }}
+ {% endif %} + {% else %} +

{% trans "Uncategorized items" %}

{% endif %} {% for item in tup.1 %} {% if item.has_variations %}