From 574fb6804f18cd474bc66dc795ede4077ca9181e Mon Sep 17 00:00:00 2001 From: noelroy Date: Fri, 2 Jun 2017 21:18:11 +0530 Subject: [PATCH] Fix #445 - Added go to shop button (#512) --- .../control/templates/pretixcontrol/base.html | 17 +++++++++++++++++ .../templates/pretixcontrol/event/index.html | 19 +++---------------- .../static/pretixcontrol/scss/main.scss | 7 +++++++ 3 files changed, 27 insertions(+), 16 deletions(-) diff --git a/src/pretix/control/templates/pretixcontrol/base.html b/src/pretix/control/templates/pretixcontrol/base.html index a87d1ccac8..67326e356c 100644 --- a/src/pretix/control/templates/pretixcontrol/base.html +++ b/src/pretix/control/templates/pretixcontrol/base.html @@ -2,6 +2,7 @@ {% load staticfiles %} {% load i18n %} {% load statici18n %} +{% load eventurl %} @@ -78,6 +79,22 @@ {% endfor %} + {% if request.event %} +
  • + {% if has_domain and not request.event.live %} +
    + + +
    + {% else %} + + {% trans "Go to shop" %} + + {% endif %} +
  • + {% endif %}