From 6257b8cb54a8275a6be53e3dab6410f3dd12ae0e Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Fri, 16 Oct 2020 22:25:22 +0200 Subject: [PATCH] Fix incorrect link on position page --- .../pretixpresale/event/fragment_downloads.html | 10 ++++------ .../presale/templates/pretixpresale/event/order.html | 2 +- .../templates/pretixpresale/event/position.html | 2 +- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/pretix/presale/templates/pretixpresale/event/fragment_downloads.html b/src/pretix/presale/templates/pretixpresale/event/fragment_downloads.html index 641417ab69..e5c280bef7 100644 --- a/src/pretix/presale/templates/pretixpresale/event/fragment_downloads.html +++ b/src/pretix/presale/templates/pretixpresale/event/fragment_downloads.html @@ -13,7 +13,7 @@ {% trans "Please check your email account, we've sent you your tickets." %}

- {% if scope == "position" %} + {% if position_page %} {% blocktrans trimmed %} You can also download them right here as soon as the person who placed the order clicked the link in the email they received to confirm the email address is valid. @@ -29,7 +29,7 @@ {% elif can_download and download_buttons and order.count_positions %}

- {% if cart.positions|length > 1 and can_download_multi %} + {% if cart.positions|length > 1 and can_download_multi %} {# never True on ticket page #} {% blocktrans trimmed %} Please have your ticket ready when entering the event. {% endblocktrans %} @@ -51,7 +51,7 @@ {% endif %} {% endfor %}

- {% elif tickets_with_download|length == 1 %} + {% elif tickets_with_download|length == 1 %} {% blocktrans trimmed %} Please have your ticket ready when entering the event. {% endblocktrans %} @@ -60,9 +60,7 @@ {% endblocktrans %}

{% for b in download_buttons %} -

{% csrf_token %} diff --git a/src/pretix/presale/templates/pretixpresale/event/order.html b/src/pretix/presale/templates/pretixpresale/event/order.html index 2e044801be..6d89d775bd 100644 --- a/src/pretix/presale/templates/pretixpresale/event/order.html +++ b/src/pretix/presale/templates/pretixpresale/event/order.html @@ -163,7 +163,7 @@
{% endif %} {% endif %} - {% include "pretixpresale/event/fragment_downloads.html" with scope="order" %} + {% include "pretixpresale/event/fragment_downloads.html" with position_page=False %}
{% if order.can_modify_answers %} diff --git a/src/pretix/presale/templates/pretixpresale/event/position.html b/src/pretix/presale/templates/pretixpresale/event/position.html index 2a3fb95494..a144f35c53 100644 --- a/src/pretix/presale/templates/pretixpresale/event/position.html +++ b/src/pretix/presale/templates/pretixpresale/event/position.html @@ -22,7 +22,7 @@
{% eventsignal event "pretix.presale.signals.position_info_top" order=order position=position request=request %} - {% include "pretixpresale/event/fragment_downloads.html" with scope="position" %} + {% include "pretixpresale/event/fragment_downloads.html" with position_page=True %}