mirror of
https://github.com/pretix/pretix.git
synced 2026-08-11 10:57:00 +00:00
Compare commits
5
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1d7c935a9e | ||
|
|
d17f03ccd5 | ||
|
|
192aa9fc9f | ||
|
|
5e57ce6ef9 | ||
|
|
2f794c8e7d |
@@ -9,7 +9,7 @@
|
|||||||
{% load anonymize_email %}
|
{% load anonymize_email %}
|
||||||
{% block thetitle %}
|
{% block thetitle %}
|
||||||
{% if messages %}
|
{% if messages %}
|
||||||
{{ messages|join:" " }} ::
|
{{ messages|join:" " }} ::
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% block title %}{% endblock %}{% if request.resolver_match.url_name != "event.index" %} :: {% endif %}{{ event.name }}
|
{% block title %}{% endblock %}{% if request.resolver_match.url_name != "event.index" %} :: {% endif %}{{ event.name }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{% extends "pretixpresale/event/base.html" %}
|
{% extends "pretixpresale/event/base.html" %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
{% load l10n %}
|
{% load l10n %}
|
||||||
|
{% load static %}
|
||||||
{% load eventurl %}
|
{% load eventurl %}
|
||||||
{% load cache_large %}
|
{% load cache_large %}
|
||||||
{% load money %}
|
{% load money %}
|
||||||
@@ -39,6 +40,7 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<meta property="og:url" content="{% abseventurl request.event "presale:event.index" %}" />
|
<meta property="og:url" content="{% abseventurl request.event "presale:event.index" %}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<script type="text/javascript" src="{% static "pretixpresale/js/csrfcookieretry.js" %}"></script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
{% load money %}
|
{% load money %}
|
||||||
{% load expiresformat %}
|
{% load expiresformat %}
|
||||||
{% load eventurl %}
|
{% load eventurl %}
|
||||||
|
{% load static %}
|
||||||
{% load phone_format %}
|
{% load phone_format %}
|
||||||
{% load rich_text %}
|
{% load rich_text %}
|
||||||
{% load getitem %}
|
{% load getitem %}
|
||||||
@@ -22,6 +23,10 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% trans "Order details" %}
|
{% trans "Order details" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
{% block custom_header %}
|
||||||
|
{{ block.super }}
|
||||||
|
<script type="text/javascript" src="{% static "pretixpresale/js/csrfcookieretry.js" %}"></script>
|
||||||
|
{% endblock %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% if "thanks" in request.GET or "paid" in request.GET %}
|
{% if "thanks" in request.GET or "paid" in request.GET %}
|
||||||
<div class="thank-you">
|
<div class="thank-you">
|
||||||
|
|||||||
@@ -0,0 +1,15 @@
|
|||||||
|
document.addEventListener("DOMContentLoaded", () => {
|
||||||
|
const COOKIE_NAME = "__Host-pretix_csrftoken";
|
||||||
|
const RELOAD_FLAG = "csrfReloadPerformed";
|
||||||
|
|
||||||
|
const hasCookie = document.cookie
|
||||||
|
.split("; ")
|
||||||
|
.some((c) => c.startsWith(COOKIE_NAME + "="));
|
||||||
|
|
||||||
|
if (!hasCookie && !sessionStorage.getItem(RELOAD_FLAG)) {
|
||||||
|
sessionStorage.setItem(RELOAD_FLAG, "1");
|
||||||
|
location.reload();
|
||||||
|
} else if (hasCookie && sessionStorage.getItem(RELOAD_FLAG)) {
|
||||||
|
sessionStorage.removeItem(RELOAD_FLAG);
|
||||||
|
}
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user