summaryrefslogtreecommitdiff
path: root/app/views/errors
diff options
context:
space:
mode:
authorHorus32015-02-05 02:55:30 +0100
committerHorus32015-02-05 02:55:30 +0100
commitaf1f4677c685e8a2c4967ffa0350d314a6543db7 (patch)
tree7b749014441c732b75789eec4b93dc885f4a1f8f /app/views/errors
downloadwebmon-af1f4677c685e8a2c4967ffa0350d314a6543db7.tar.gz
Init
Diffstat (limited to 'app/views/errors')
-rw-r--r--app/views/errors/404.html20
-rw-r--r--app/views/errors/500.html16
2 files changed, 36 insertions, 0 deletions
diff --git a/app/views/errors/404.html b/app/views/errors/404.html
new file mode 100644
index 0000000..ebdfe10
--- /dev/null
+++ b/app/views/errors/404.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <title>Not found</title>
+ </head>
+ <body>
+{{if eq .RunMode "dev"}}
+{{template "errors/404-dev.html" .}}
+{{else}}
+ {{with .Error}}
+ <h1>
+ {{.Title}}
+ </h1>
+ <p>
+ {{.Description}}
+ </p>
+ {{end}}
+{{end}}
+ </body>
+</html>
diff --git a/app/views/errors/500.html b/app/views/errors/500.html
new file mode 100644
index 0000000..0cef4de
--- /dev/null
+++ b/app/views/errors/500.html
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Application error</title>
+ </head>
+ <body>
+ {{if eq .RunMode "dev"}}
+ {{template "errors/500-dev.html" .}}
+ {{else}}
+ <h1>Oops, an error occured</h1>
+ <p>
+ This exception has been logged.
+ </p>
+ {{end}}
+ </body>
+</html>