forked from CGM_Public/pretix_original
Fix ticket download-date hint when plugins disallow download (#2812)
This commit is contained in:
committed by
GitHub
parent
4b49782fac
commit
f35eb2a2f4
@@ -88,7 +88,7 @@
|
|||||||
</p>
|
</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% elif not can_download and ticket_download_date %}
|
{% elif not can_download and plugins_allow_ticket_download and ticket_download_date %}
|
||||||
{% if order.status == 'p' %}
|
{% if order.status == 'p' %}
|
||||||
<div class="alert alert-info info-download">
|
<div class="alert alert-info info-download">
|
||||||
{% blocktrans trimmed with date=ticket_download_date|date:"SHORT_DATE_FORMAT" %}
|
{% blocktrans trimmed with date=ticket_download_date|date:"SHORT_DATE_FORMAT" %}
|
||||||
|
|||||||
@@ -177,6 +177,7 @@ class TicketPageMixin:
|
|||||||
ctx['order'] = self.order
|
ctx['order'] = self.order
|
||||||
|
|
||||||
can_download = all([r for rr, r in allow_ticket_download.send(self.request.event, order=self.order)])
|
can_download = all([r for rr, r in allow_ticket_download.send(self.request.event, order=self.order)])
|
||||||
|
ctx['plugins_allow_ticket_download'] = can_download
|
||||||
if self.request.event.settings.ticket_download_date:
|
if self.request.event.settings.ticket_download_date:
|
||||||
ctx['ticket_download_date'] = self.order.ticket_download_date
|
ctx['ticket_download_date'] = self.order.ticket_download_date
|
||||||
can_download = (
|
can_download = (
|
||||||
|
|||||||
Reference in New Issue
Block a user