From 0c1072503c739d3083ccccf5de3cb3a09be99b91 Mon Sep 17 00:00:00 2001 From: Richard Schreiber Date: Wed, 28 Aug 2024 14:35:35 +0200 Subject: [PATCH] A11y: improve/unify html-source for uncategorized products --- .../pretixpresale/event/fragment_product_list.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 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 b6c5f784d6..13bc910190 100644 --- a/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html +++ b/src/pretix/presale/templates/pretixpresale/event/fragment_product_list.html @@ -6,13 +6,16 @@ {% load eventsignal %} {% load rich_text %} {% for tup in items_by_category %} -
- {% if tup.0 %} + {% if tup.0 %} +

{{ tup.0.name }}

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

{% trans "Uncategorized items" %}

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