From 5e3a8325ca5b567fb11dd4433638f48bde8b0e96 Mon Sep 17 00:00:00 2001
From: FlaviaBastos
Date: Wed, 5 Oct 2016 10:17:54 -0600
Subject: [PATCH] Fix #155 -- Remove javascript URIs for CSP (#261)
* remove javascript URIs for CSP
#155
* remove javascript URIs for CSP
Issue 155
Combining js error handling files.
---
src/pretix/base/templates/400.html | 6 +++---
src/pretix/base/templates/403.html | 6 +++---
src/pretix/base/templates/404.html | 4 ++--
src/pretix/base/templates/500.html | 6 +++---
src/pretix/base/templates/csrffail.html | 4 ++--
src/pretix/base/templates/error.html | 1 +
src/static/pretixbase/js/errors.js | 5 +++++
7 files changed, 19 insertions(+), 13 deletions(-)
create mode 100644 src/static/pretixbase/js/errors.js
diff --git a/src/pretix/base/templates/400.html b/src/pretix/base/templates/400.html
index ea65f5898..274850d43 100644
--- a/src/pretix/base/templates/400.html
+++ b/src/pretix/base/templates/400.html
@@ -7,7 +7,7 @@
{% trans "We were unable to parse your request." %}
{{ exception }}
- {% trans "Take a step back" %}
- · {% trans "Try again" %}
+ {% trans "Take a step back" %}
+ · {% trans "Try again" %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/src/pretix/base/templates/403.html b/src/pretix/base/templates/403.html
index 2d39c0aa2..42280eae5 100644
--- a/src/pretix/base/templates/403.html
+++ b/src/pretix/base/templates/403.html
@@ -7,7 +7,7 @@
{% trans "You do not have access to this page." %}
{{ exception }}
- {% trans "Take a step back" %}
- · {% trans "Try again" %}
+ {% trans "Take a step back" %}
+ · {% trans "Try again" %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/src/pretix/base/templates/404.html b/src/pretix/base/templates/404.html
index 943af33de..13d84db87 100644
--- a/src/pretix/base/templates/404.html
+++ b/src/pretix/base/templates/404.html
@@ -7,6 +7,6 @@
{% trans "I'm afraid we could not find the the resource you requested." %}
{{ exception }}
- {% trans "Take a step back" %}
+ {% trans "Take a step back" %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/src/pretix/base/templates/500.html b/src/pretix/base/templates/500.html
index 607bd8973..51a67b211 100644
--- a/src/pretix/base/templates/500.html
+++ b/src/pretix/base/templates/500.html
@@ -8,7 +8,7 @@
{% trans "If this problem persists, please contact us." %}
{{ exception }}
- {% trans "Take a step back" %}
- · {% trans "Try again" %}
+ {% trans "Take a step back" %}
+ · {% trans "Try again" %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/src/pretix/base/templates/csrffail.html b/src/pretix/base/templates/csrffail.html
index 730f6df6e..59fe8d60b 100644
--- a/src/pretix/base/templates/csrffail.html
+++ b/src/pretix/base/templates/csrffail.html
@@ -19,6 +19,6 @@
{% endblocktrans %}
{% endif %}
- {% trans "Take a step back" %}
+ {% trans "Take a step back" %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/src/pretix/base/templates/error.html b/src/pretix/base/templates/error.html
index e752c8836..eebd19498 100644
--- a/src/pretix/base/templates/error.html
+++ b/src/pretix/base/templates/error.html
@@ -16,4 +16,5 @@
{% block content %}{% endblock %}