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:
Richard Schreiber
2023-11-13 18:15:18 +01:00
committed by GitHub
parent 1d5a8a5948
commit 0d82c3703d
2 changed files with 13 additions and 13 deletions

View File

@@ -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'