mirror of
https://github.com/pretix/pretix.git
synced 2026-08-10 10:47:00 +00:00
refactoring
This commit is contained in:
@@ -243,7 +243,7 @@
|
||||
|
||||
{% if download %}
|
||||
<div role="cell" class="download-desktop">
|
||||
{% if line.ticket_download_allowed %}
|
||||
{% if line in tickets_with_download %}
|
||||
{% for b in download_buttons %}
|
||||
<form action="{% if position_page and line.addon_to %}{% eventurl event "presale:event.order.position.download" secret=line.addon_to.web_secret order=order.code output=b.identifier pid=line.pk position=line.addon_to.positionid %}{% elif position_page %}{% eventurl event "presale:event.order.position.download" secret=line.web_secret order=order.code output=b.identifier pid=line.pk position=line.positionid %}{% else %}{% eventurl event "presale:event.order.download" secret=order.secret order=order.code output=b.identifier position=line.pk %}{% endif %}"
|
||||
method="post" data-asynctask data-asynctask-download class="download-btn-form{% if b.javascript_required %} requirejs{% endif %}">
|
||||
|
||||
@@ -208,8 +208,6 @@ class TicketPageMixin:
|
||||
)
|
||||
|
||||
ctx['tickets_with_download'] = [p for p in ctx['cart']['positions'] if p in positions_with_tickets]
|
||||
for allowed_op in ctx['tickets_with_download']:
|
||||
allowed_op.ticket_download_allowed = True
|
||||
|
||||
ctx['download_buttons'] = self.download_buttons
|
||||
|
||||
|
||||
Reference in New Issue
Block a user