From f847cf06eb3580c430169739c20d0814842783e2 Mon Sep 17 00:00:00 2001 From: David Patzke Date: Fri, 3 May 2019 12:53:03 +0200 Subject: [PATCH 1/2] Add styled general error page and 404 error page --- .../views/Exception/error.html.twig | 106 ++++++++++++++++++ .../views/Exception/error404.html.twig | 2 + 2 files changed, 108 insertions(+) create mode 100644 application/app/Resources/TwigBundle/views/Exception/error.html.twig create mode 100644 application/app/Resources/TwigBundle/views/Exception/error404.html.twig diff --git a/application/app/Resources/TwigBundle/views/Exception/error.html.twig b/application/app/Resources/TwigBundle/views/Exception/error.html.twig new file mode 100644 index 000000000..77226e18c --- /dev/null +++ b/application/app/Resources/TwigBundle/views/Exception/error.html.twig @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + +{% block header %} +
{{ fom.server_name }} {{ fom.server_version }} + +
+{% endblock %} + +
+{% block error %} + {{ status_code }} +
+ {% block error_text %} {{ status_text }} {% endblock %} + +
+
+{% endblock %} + +{% block information %} + + You may want to head back to the Welcome page. + {% if fom.server_admin is defined %} + If you think something is broken, contact an Admin. + {% endif %} + +{% endblock %} + +{% block buttons %} +
+ Go back + {% if fom.server_admin is defined %} + Contact an Admin + {% endif %} +
+{% endblock %} + +
+ + diff --git a/application/app/Resources/TwigBundle/views/Exception/error404.html.twig b/application/app/Resources/TwigBundle/views/Exception/error404.html.twig new file mode 100644 index 000000000..6189fc44d --- /dev/null +++ b/application/app/Resources/TwigBundle/views/Exception/error404.html.twig @@ -0,0 +1,2 @@ +{% extends '@Twig/Exception/error.html.twig' %} +{% block error_text %} Oops, the page you're looking for does not exist. {% endblock %} From 479a81a6fbb5ad5027181918112683fd028d686c Mon Sep 17 00:00:00 2001 From: David Patzke Date: Fri, 3 May 2019 12:57:39 +0200 Subject: [PATCH 2/2] Fix body query paramter in mailto-url --- .../app/Resources/TwigBundle/views/Exception/error.html.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/app/Resources/TwigBundle/views/Exception/error.html.twig b/application/app/Resources/TwigBundle/views/Exception/error.html.twig index 77226e18c..af7c1d63c 100644 --- a/application/app/Resources/TwigBundle/views/Exception/error.html.twig +++ b/application/app/Resources/TwigBundle/views/Exception/error.html.twig @@ -96,7 +96,7 @@
Go back {% if fom.server_admin is defined %} - Contact an Admin + Contact an Admin {% endif %}
{% endblock %}