]> source.dussan.org Git - gitea.git/commitdiff
404 and 500 page ui
authorFuXiaoHei <fuxiaohei@hexiaz.com>
Sun, 23 Mar 2014 08:20:47 +0000 (16:20 +0800)
committerFuXiaoHei <fuxiaohei@hexiaz.com>
Sun, 23 Mar 2014 08:20:47 +0000 (16:20 +0800)
public/img/404.png [new file with mode: 0644]
public/img/500.png [new file with mode: 0644]
templates/status/404.tmpl
templates/status/500.tmpl

diff --git a/public/img/404.png b/public/img/404.png
new file mode 100644 (file)
index 0000000..1f0ee0e
Binary files /dev/null and b/public/img/404.png differ
diff --git a/public/img/500.png b/public/img/500.png
new file mode 100644 (file)
index 0000000..2c122fd
Binary files /dev/null and b/public/img/500.png differ
index 4e836b228d6383a3a1f7d0f428239d2a42d6ff00..c2cafe0c9dd08301d376aea3033e3bfca89cf43c 100644 (file)
@@ -1,7 +1,8 @@
 {{template "base/head" .}}
 {{template "base/navbar" .}}
-<div id="gogs-body" class="container">
-    <h4>This page is not found !</h4>
+<div id="gogs-body" class="container text-center">
+    <p style="margin-top: 80px"><img src="/img/404.png" alt="404"/></p>
+    <hr/>
     <p>Application Version: {{AppVer}}</p>
 </div>
 {{template "base/footer" .}}
\ No newline at end of file
index 9a00eb1ff7407d851879dc4aa88af7ff90364516..f3cd24d6964ec51286faf1182d36f30da4931b04 100644 (file)
@@ -1,7 +1,10 @@
 {{template "base/head" .}}
 {{template "base/navbar" .}}
-<div id="gogs-body" class="container">
+<div id="gogs-body" class="container text-center">
+    <p style="margin-top: 80px"><img src="/img/500.png" alt="404"/></p>
+    <hr/>
     <p>An error is occurred : {{.ErrorMsg}}</p>
+    <hr/>
     <p>Application Version: {{AppVer}}</p>
 </div>
 {{template "base/footer" .}}
\ No newline at end of file