mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Widget: label button in event-list with "More info“ when availability is unknown (Z#23135197) (#3715)
* Widget: show "more info“ for unknown availability * fix localization Co-authored-by: Raphael Michel <michel@rami.io> * fix tests --------- Co-authored-by: Raphael Michel <michel@rami.io>
This commit is contained in:
committed by
GitHub
parent
1d5a8a5948
commit
0d82c3703d
@@ -405,7 +405,7 @@ class WidgetAPIProductList(EventListMixin, View):
|
||||
availability['reason'] = 'full'
|
||||
else: # unknown / no product
|
||||
availability['color'] = 'none'
|
||||
availability['text'] = ''
|
||||
availability['text'] = gettext('More info')
|
||||
availability['reason'] = 'unknown'
|
||||
elif ev.presale_is_running:
|
||||
availability['color'] = 'green'
|
||||
|
||||
Reference in New Issue
Block a user