summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-12-20 14:03:15 +0100
committerDaniel Friesel <derf@finalrewind.org>2014-12-20 14:03:15 +0100
commit334cdd809e665db47dde838765c2669f9a52d3cf (patch)
tree7ce659931fb9d52a385b115285155e8d9b173aaa
parentd57c06c50b5d50ae7ebc23ff52f9a178bd84b96a (diff)
add exception and not_found templates
-rw-r--r--templates/exception.html.ep26
-rw-r--r--templates/not_found.html.ep20
2 files changed, 46 insertions, 0 deletions
diff --git a/templates/exception.html.ep b/templates/exception.html.ep
new file mode 100644
index 0000000..dfa71e1
--- /dev/null
+++ b/templates/exception.html.ep
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>vrr-fakedisplay</title>
+ <meta charset="utf-8">
+ %= stylesheet '/main.css'
+</head>
+<body>
+
+<div class="error">500 Internal Server Error</div>
+<div>
+<pre>
+An error occured while processing your request.
+
+----------[Debug start]----------
+%= $exception->message
+Stash:
+%= dumper $snapshot
+----------[Debug end]----------
+</pre>
+</div>
+<div>
+<a href="/">return to main page</a>
+</div>
+</body>
+</html>
diff --git a/templates/not_found.html.ep b/templates/not_found.html.ep
new file mode 100644
index 0000000..35255b3
--- /dev/null
+++ b/templates/not_found.html.ep
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>vrr-fakedisplay</title>
+ <meta charset="utf-8">
+ %= stylesheet '/main.css'
+</head>
+<body>
+
+<div class="error">404 Not Found</div>
+<div>
+<pre>
+The requested URL does not exist and does not map to a public transit station.
+</pre>
+</div>
+<div>
+<a href="/">return to main page</a>
+</div>
+</body>
+</html>