diff --git a/src/pretix/base/templates/400.html b/src/pretix/base/templates/400.html index 274850d43..e3d128401 100644 --- a/src/pretix/base/templates/400.html +++ b/src/pretix/base/templates/400.html @@ -2,12 +2,14 @@ {% load i18n %} {% block title %}{% trans "Bad Request" %}{% endblock %} {% block content %} - -

{% trans "Bad Request" %}

-

{% trans "We were unable to parse your request." %}

-

{{ exception }}

- + +
+

{% trans "Bad Request" %}

+

{% trans "We were unable to parse your request." %}

+

{{ exception }}

+ +
{% endblock %} diff --git a/src/pretix/base/templates/403.html b/src/pretix/base/templates/403.html index 42280eae5..3e0bcbbb7 100644 --- a/src/pretix/base/templates/403.html +++ b/src/pretix/base/templates/403.html @@ -2,12 +2,14 @@ {% load i18n %} {% block title %}{% trans "Permission denied" %}{% endblock %} {% block content %} - -

{% trans "Permission denied" %}

-

{% trans "You do not have access to this page." %}

-

{{ exception }}

- + +
+

{% trans "Permission denied" %}

+

{% trans "You do not have access to this page." %}

+

{{ exception }}

+ +
{% endblock %} diff --git a/src/pretix/base/templates/404.html b/src/pretix/base/templates/404.html index 13d84db87..5bfc7399a 100644 --- a/src/pretix/base/templates/404.html +++ b/src/pretix/base/templates/404.html @@ -2,11 +2,13 @@ {% load i18n %} {% block title %}{% trans "Not found" %}{% endblock %} {% block content %} - -

{% trans "Not found" %}

-

{% trans "I'm afraid we could not find the the resource you requested." %}

-

{{ exception }}

- + +
+

{% trans "Not found" %}

+

{% trans "I'm afraid we could not find the the resource you requested." %}

+

{{ exception }}

+ +
{% endblock %} diff --git a/src/pretix/base/templates/500.html b/src/pretix/base/templates/500.html index 409f3e30d..72c6f4fb2 100644 --- a/src/pretix/base/templates/500.html +++ b/src/pretix/base/templates/500.html @@ -2,22 +2,24 @@ {% load i18n %} {% block title %}{% trans "Internal Server Error" %}{% endblock %} {% block content %} - -

{% trans "Internal Server Error" %}

-

{% trans "We had trouble processing your request." %}

-

{% trans "If this problem persists, please contact us." %}

- {% if request.sentry.id %} -

- {% blocktrans trimmed %} - If you contact us, please send us the following code: - {% endblocktrans %} -
- {{ request.sentry.id }} + +

+

{% trans "Internal Server Error" %}

+

{% trans "We had trouble processing your request." %}

+

{% trans "If this problem persists, please contact us." %}

+ {% if request.sentry.id %} +

+ {% blocktrans trimmed %} + If you contact us, please send us the following code: + {% endblocktrans %} +
+ {{ request.sentry.id }} +

+ {% endif %} +

{{ exception }}

+ - {% endif %} -

{{ exception }}

- +
{% endblock %} diff --git a/src/pretix/base/templates/csrffail.html b/src/pretix/base/templates/csrffail.html index 59fe8d60b..07e51c12f 100644 --- a/src/pretix/base/templates/csrffail.html +++ b/src/pretix/base/templates/csrffail.html @@ -2,23 +2,27 @@ {% load i18n %} {% block title %}{% trans "Verification failed" %}{% endblock %} {% block content %} - -

{% trans "Verification failed" %}

-

{% blocktrans trimmed %} - We could not verify that this request really was sent from you. For security reasons, we therefore cannot process it. - {% endblocktrans %}

- {% if no_referer %} -

{{ no_referer1 }}

-

{{ no_referer2 }}

- {% elif no_cookie %} -

{{ no_cookie1 }}

-

{{ no_cookie2 }}

- {% else %} + +
+

{% trans "Verification failed" %}

{% blocktrans trimmed %} - Please go back to the last page, refresh this page and then try again. If the problem persists, please get in touch with us. + We could not verify that this request really was sent from you. For security reasons, we therefore cannot + process it. {% endblocktrans %}

- {% endif %} - + {% if no_referer %} +

{{ no_referer1 }}

+

{{ no_referer2 }}

+ {% elif no_cookie %} +

{{ no_cookie1 }}

+

{{ no_cookie2 }}

+ {% else %} +

{% blocktrans trimmed %} + Please go back to the last page, refresh this page and then try again. If the problem persists, please + get in touch with us. + {% endblocktrans %}

+ {% endif %} + +
{% endblock %} diff --git a/src/pretix/static/pretixbase/scss/error.scss b/src/pretix/static/pretixbase/scss/error.scss index 478844a8e..4de52b518 100644 --- a/src/pretix/static/pretixbase/scss/error.scss +++ b/src/pretix/static/pretixbase/scss/error.scss @@ -5,12 +5,35 @@ body { - background: #ececec; - text-align: center; + background: #fbf7fc; padding: 50px 0; } .big-icon { font-size: 200px; - color: $brand-primary; + color: $navbar-inverse-bg; + display: block; + float: left; } + +.error-details { + margin-left: 260px; +} + +.container { + width: 90%; + max-width: 800px; +} + +@media(max-width: 600px) { + body { + text-align: center; + } + .big-icon { + margin: auto; + float: none; + } + .error-details { + margin-left: 0; + } +} \ No newline at end of file