summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to '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>