aboutsummaryrefslogtreecommitdiffstats
path: root/jm2l/templates/Errors/404.mako
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2015-02-28 21:57:08 +0100
committerpiernov <piernov@piernov.org>2015-02-28 21:57:08 +0100
commit385971456e6cbdab055263d717023c5cb17ab72a (patch)
treea33d996cfbd174ee97045e8c59f57d68fc177b99 /jm2l/templates/Errors/404.mako
parent2a8cf25c394d9bd89d5d9bfb34bc6b32c3a61454 (diff)
downloadjm2l-385971456e6cbdab055263d717023c5cb17ab72a.tar.gz
jm2l-385971456e6cbdab055263d717023c5cb17ab72a.tar.bz2
jm2l-385971456e6cbdab055263d717023c5cb17ab72a.tar.xz
jm2l-385971456e6cbdab055263d717023c5cb17ab72a.zip
Rename *.mak to *.mako for consistency
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 -->