use ctx.Handle to handle 404 page

This commit is contained in:
FuXiaoHei committed 2014-03-23 13:12:55 +08:00
1 parent ad31893bbb
commit 47493a0191
5 files changed
+34 -20

No files matched your search

+7
View File
@@ -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" .}}
+7
View File
@@ -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" .}}