From 218d04ca12051c4330156fc1f3290f27bb24c155 Mon Sep 17 00:00:00 2001 From: Horus_Arch Date: Thu, 12 Feb 2015 18:48:08 +0100 Subject: Initial commit. With basic database schema. --- app/views/errors/404.html | 20 ++++++++++++++++++++ app/views/errors/500.html | 16 ++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 app/views/errors/404.html create mode 100644 app/views/errors/500.html (limited to 'app/views/errors') 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 @@ + + + + Not found + + +{{if eq .RunMode "dev"}} +{{template "errors/404-dev.html" .}} +{{else}} + {{with .Error}} +

+ {{.Title}} +

+

+ {{.Description}} +

+ {{end}} +{{end}} + + 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 @@ + + + + Application error + + + {{if eq .RunMode "dev"}} + {{template "errors/500-dev.html" .}} + {{else}} +

Oops, an error occured

+

+ This exception has been logged. +

+ {{end}} + + -- cgit v1.2.3