From faf41c805c898f1be637d9aea2e268e9dfc8aeb9 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Tue, 11 Jul 2023 13:33:40 +0200 Subject: [PATCH] Waiting list: Fix display on unlimited quota --- .../pretixcontrol/waitinglist/index.html | 22 ++++++++++++++----- 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/src/pretix/control/templates/pretixcontrol/waitinglist/index.html b/src/pretix/control/templates/pretixcontrol/waitinglist/index.html index e3bab5dbd9..d46a28ad7c 100644 --- a/src/pretix/control/templates/pretixcontrol/waitinglist/index.html +++ b/src/pretix/control/templates/pretixcontrol/waitinglist/index.html @@ -212,11 +212,21 @@ {% trans "Voucher assigned" %} {% endif %} {% elif e.availability.0 == 100 %} - - {% blocktrans with num=e.availability.1 %} - Waiting, product {{ num }}x available - {% endblocktrans %} - + {% if e.availability.1|default_if_none:"none" == "none" %} + + + {% blocktrans trimmed %} + Quota unlimited + {% endblocktrans %} + + {% else %} + + {% blocktrans with num=e.availability.1 %} + Waiting, product {{ num }}x available + {% endblocktrans %} + + {% endif %} {% else %} {% trans "Waiting, product unavailable" %} {% endif %} @@ -226,7 +236,7 @@ {{ e.voucher }} - {% elif not e.voucher and e.availability.0 == 100 %} + {% elif not e.voucher and e.availability.0 == 100 and e.availability.1|default_if_none:"none" != "none" %}