forked from CGM_Public/pretix_original
* remove javascript URIs for CSP #155 * remove javascript URIs for CSP Issue 155 Combining js error handling files.
This commit is contained in:
committed by
Raphael Michel
parent
689f78d03b
commit
5e3a8325ca
@@ -7,7 +7,7 @@
|
|||||||
<p>{% trans "We were unable to parse your request." %}</p>
|
<p>{% trans "We were unable to parse your request." %}</p>
|
||||||
<p>{{ exception }}</p>
|
<p>{{ exception }}</p>
|
||||||
<p class="links">
|
<p class="links">
|
||||||
<a href="javascript:history.back()">{% trans "Take a step back" %}</a>
|
<a id='goback' href='#'>{% trans "Take a step back" %}</a>
|
||||||
· <a href="javascript:location.reload()">{% trans "Try again" %}</a>
|
· <a id='reload' href='#'>{% trans "Try again" %}</a>
|
||||||
</p>
|
</p>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@@ -7,7 +7,7 @@
|
|||||||
<p>{% trans "You do not have access to this page." %}</p>
|
<p>{% trans "You do not have access to this page." %}</p>
|
||||||
<p>{{ exception }}</p>
|
<p>{{ exception }}</p>
|
||||||
<p class="links">
|
<p class="links">
|
||||||
<a href="javascript:history.back()">{% trans "Take a step back" %}</a>
|
<a id='goback' href='#'>{% trans "Take a step back" %}</a>
|
||||||
· <a href="javascript:location.reload()">{% trans "Try again" %}</a>
|
· <a id='reload' href='#'>{% trans "Try again" %}</a>
|
||||||
</p>
|
</p>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@@ -7,6 +7,6 @@
|
|||||||
<p>{% trans "I'm afraid we could not find the the resource you requested." %}</p>
|
<p>{% trans "I'm afraid we could not find the the resource you requested." %}</p>
|
||||||
<p>{{ exception }}</p>
|
<p>{{ exception }}</p>
|
||||||
<p class="links">
|
<p class="links">
|
||||||
<a href="javascript:history.back()">{% trans "Take a step back" %}</a>
|
<a id='goback' href='#'>{% trans "Take a step back" %}</a>
|
||||||
</p>
|
</p>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
<p>{% trans "If this problem persists, please contact us." %}</p>
|
<p>{% trans "If this problem persists, please contact us." %}</p>
|
||||||
<p>{{ exception }}</p>
|
<p>{{ exception }}</p>
|
||||||
<p class="links">
|
<p class="links">
|
||||||
<a href="javascript:history.back()">{% trans "Take a step back" %}</a>
|
<a id='goback' href='#'>{% trans "Take a step back" %}</a>
|
||||||
· <a href="javascript:location.reload()">{% trans "Try again" %}</a>
|
· <a id='reload' href='#'>{% trans "Try again" %}</a>
|
||||||
</p>
|
</p>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@@ -19,6 +19,6 @@
|
|||||||
{% endblocktrans %}</p>
|
{% endblocktrans %}</p>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<p class="links">
|
<p class="links">
|
||||||
<a href="javascript:history.back()">{% trans "Take a step back" %}</a>
|
<a id='goback' href='#'>{% trans "Take a step back" %}</a>
|
||||||
</p>
|
</p>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@@ -16,4 +16,5 @@
|
|||||||
{% block content %}{% endblock %}
|
{% block content %}{% endblock %}
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
<script src="{% static "pretixbase/js/errors.js" %}"></script>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
5
src/static/pretixbase/js/errors.js
Normal file
5
src/static/pretixbase/js/errors.js
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
document.getElementById('goback').onclick =
|
||||||
|
function() {window.history.back()};
|
||||||
|
|
||||||
|
document.getElementById('reload').onclick =
|
||||||
|
function() {window.location.reload(true)};
|
||||||
Reference in New Issue
Block a user