From 47493a0191f3de8aa4e80bce1911f14623cfa46a Mon Sep 17 00:00:00 2001 From: FuXiaoHei Date: Sun, 23 Mar 2014 13:12:55 +0800 Subject: use ctx.Handle to handle 404 page --- templates/status/404.tmpl | 7 +++++++ templates/status/500.tmpl | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 templates/status/404.tmpl create mode 100644 templates/status/500.tmpl (limited to 'templates') diff --git a/templates/status/404.tmpl b/templates/status/404.tmpl new file mode 100644 index 0000000000..4e836b228d --- /dev/null +++ b/templates/status/404.tmpl @@ -0,0 +1,7 @@ +{{template "base/head" .}} +{{template "base/navbar" .}} +
+

This page is not found !

+

Application Version: {{AppVer}}

+
+{{template "base/footer" .}} \ No newline at end of file diff --git a/templates/status/500.tmpl b/templates/status/500.tmpl new file mode 100644 index 0000000000..9a00eb1ff7 --- /dev/null +++ b/templates/status/500.tmpl @@ -0,0 +1,7 @@ +{{template "base/head" .}} +{{template "base/navbar" .}} +
+

An error is occurred : {{.ErrorMsg}}

+

Application Version: {{AppVer}}

+
+{{template "base/footer" .}} \ No newline at end of file -- cgit v1.2.3