From b0397e50b422fd99fc6903be2dd598a8280d1381 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 11 May 2019 01:29:21 +0200 Subject: [PATCH] add custom not_found and exception templates --- templates/exception.html.ep | 27 +++++++++++++++++++++++++++ templates/not_found.html.ep | 10 ++++++++++ 2 files changed, 37 insertions(+) create mode 100644 templates/exception.html.ep create mode 100644 templates/not_found.html.ep diff --git a/templates/exception.html.ep b/templates/exception.html.ep new file mode 100644 index 0000000..e4daf9a --- /dev/null +++ b/templates/exception.html.ep @@ -0,0 +1,27 @@ +
+
+
+
+ 500 Internal Server Error +

Das hätte nicht passieren sollen.

+
+ +
+
+
+
+
+

Angaben für einen Bug-Report:

+

+ Timestamp: + %= DateTime->now(time_zone => 'Europe/Berlin')->strftime("%d/%b/%Y:%H:%M:%S %z") +

+ Message: + %= (split(qr{\n}, $exception->message))[0] +

+
+
diff --git a/templates/not_found.html.ep b/templates/not_found.html.ep new file mode 100644 index 0000000..de0d533 --- /dev/null +++ b/templates/not_found.html.ep @@ -0,0 +1,10 @@ +
+
+
+
+ 404 Not Found +

Diese Seite gibt es hier nicht.

+
+
+
+