aboutsummaryrefslogtreecommitdiffstats
path: root/jm2l/templates/Errors/404.mako
diff options
context:
space:
mode:
Diffstat (limited to 'jm2l/templates/Errors/404.mako')
-rw-r--r--jm2l/templates/Errors/404.mako65
1 files changed, 65 insertions, 0 deletions
diff --git a/jm2l/templates/Errors/404.mako b/jm2l/templates/Errors/404.mako
new file mode 100644
index 0000000..6379cd4
--- /dev/null
+++ b/jm2l/templates/Errors/404.mako
@@ -0,0 +1,65 @@
+<!doctype html>
+<html lang="en">
+<head>
+ <meta charset="utf-8">
+ <title>Page Not Found</title>
+ <meta name="viewport" content="width=device-width, initial-scale=1">
+ <style>
+
+ * {
+ line-height: 1.2;
+ margin: 0;
+ }
+
+ html {
+ color: #888;
+ display: table;
+ font-family: sans-serif;
+ height: 100%;
+ text-align: center;
+ width: 100%;
+ }
+
+ body {
+ display: table-cell;
+ vertical-align: middle;
+ margin: 2em auto;
+ }
+
+ h1 {
+ color: #555;
+ font-size: 2em;
+ font-weight: 400;
+ }
+
+ p {
+ margin: 0 auto;
+ width: 380px;
+ }
+
+ @media only screen and (max-width: 280px) {
+
+ body, p {
+ width: 95%;
+ }
+
+ h1 {
+ font-size: 1.5em;
+ margin: 0 0 0.3em;
+ }
+
+ }
+
+ </style>
+</head>
+<body>
+ <img src="/img/error404.png" width="200px" />
+ <h1>Page non trouvée</h1>
+ % if reason:
+ <p>${reason}</p>
+ % else:
+ <p>Sorry, but the page you were trying to view does not exist.</p>
+ % endif
+</body>
+</html>
+<!-- IE needs 512+ bytes: http://blogs.msdn.com/b/ieinternals/archive/2010/08/19/http-error-pages-in-internet-explorer.aspx -->