From a1b51e0a77e8f19d8193632052a24b2631e117f4 Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Sun, 19 Jun 2016 17:15:56 +0200 Subject: [PATCH] New error page --- .../views/Exception/error.html.twig | 117 ++++-------------- 1 file changed, 22 insertions(+), 95 deletions(-) diff --git a/app/Resources/TwigBundle/views/Exception/error.html.twig b/app/Resources/TwigBundle/views/Exception/error.html.twig index fc18dae..b651239 100644 --- a/app/Resources/TwigBundle/views/Exception/error.html.twig +++ b/app/Resources/TwigBundle/views/Exception/error.html.twig @@ -3,109 +3,36 @@ Blog - {{ status_code }} - {% block metas %} - - - {% endblock %} {% block stylesheets %} - - - - - - - {% endblock %} + -
-
- -
-
-
-

{{ status_text|trans }}

- -
-
- -
-
- -
-
-
-
-
-
+
+

Error {{ status_code }}

-
-
- -
-
+ +
{{ status_text }}
+ +
Go home, you're drunk!
- + - - - - - - - {% endblock %} + if (errors.hasOwnProperty({{ status_code }})) { + var error = document.getElementById('error'); + error.innerHTML = '
' + errors[{{ status_code }}] + '
'; + } +