aboutsummaryrefslogtreecommitdiffstats
path: root/templates/status
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-23 13:12:55 +0800
committerFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-23 13:12:55 +0800
commit47493a0191f3de8aa4e80bce1911f14623cfa46a (patch)
tree7895ecc10148164c9cf34ec38eb4f178b9c9750f /templates/status
parentad31893bbbb1479f6801235ddca44b5bae2cc5c2 (diff)
downloadgitea-47493a0191f3de8aa4e80bce1911f14623cfa46a.tar.gz
gitea-47493a0191f3de8aa4e80bce1911f14623cfa46a.zip
use ctx.Handle to handle 404 page
Diffstat (limited to 'templates/status')
-rw-r--r--templates/status/404.tmpl7
-rw-r--r--templates/status/500.tmpl7
2 files changed, 14 insertions, 0 deletions
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" .}}
+<div id="gogs-body" class="container">
+ <h4>This page is not found !</h4>
+ <p>Application Version: {{AppVer}}</p>
+</div>
+{{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" .}}
+<div id="gogs-body" class="container">
+ <p>An error is occurred : {{.ErrorMsg}}</p>
+ <p>Application Version: {{AppVer}}</p>
+</div>
+{{template "base/footer" .}} \ No newline at end of file