From 7cbc49773702eb0dad862c788caf3892973ba8ba Mon Sep 17 00:00:00 2001 From: Tobias Kunze Date: Mon, 29 Aug 2016 19:12:44 +0200 Subject: [PATCH] Fix #166 -- Do not resend links to cancelled orders (#214) --- .../templates/pretixcontrol/order/index.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/pretix/control/templates/pretixcontrol/order/index.html b/src/pretix/control/templates/pretixcontrol/order/index.html index 0621054ab7..7b0b8bc37d 100644 --- a/src/pretix/control/templates/pretixcontrol/order/index.html +++ b/src/pretix/control/templates/pretixcontrol/order/index.html @@ -91,13 +91,15 @@
{% trans "User" %}
{{ order.email }}   -
- {% csrf_token %} - -
+ {% if order.status != "c" %} +
+ {% csrf_token %} + +
+ {% endif %}
{% if invoices %}
{% trans "Invoices" %}