summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-23 16:20:47 +0800
committerFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-23 16:20:47 +0800
commit13b6e06943b8cb44bb246e1d57856ed3574f6184 (patch)
tree760c4d85f42894f578bebcf3f66a2e7ccb57e3f3
parent1a16b3e99a0be7dbfeba1e683d253a22db5d1af5 (diff)
downloadgitea-13b6e06943b8cb44bb246e1d57856ed3574f6184.tar.gz
gitea-13b6e06943b8cb44bb246e1d57856ed3574f6184.zip
404 and 500 page ui
-rw-r--r--public/img/404.pngbin0 -> 9776 bytes
-rw-r--r--public/img/500.pngbin0 -> 12087 bytes
-rw-r--r--templates/status/404.tmpl5
-rw-r--r--templates/status/500.tmpl5
4 files changed, 7 insertions, 3 deletions
diff --git a/public/img/404.png b/public/img/404.png
new file mode 100644
index 0000000000..1f0ee0ef49
--- /dev/null
+++ b/public/img/404.png
Binary files differ
diff --git a/public/img/500.png b/public/img/500.png
new file mode 100644
index 0000000000..2c122fde93
--- /dev/null
+++ b/public/img/500.png
Binary files differ
diff --git a/templates/status/404.tmpl b/templates/status/404.tmpl
index 4e836b228d..c2cafe0c9d 100644
--- a/templates/status/404.tmpl
+++ b/templates/status/404.tmpl
@@ -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
diff --git a/templates/status/500.tmpl b/templates/status/500.tmpl
index 9a00eb1ff7..f3cd24d696 100644
--- a/templates/status/500.tmpl
+++ b/templates/status/500.tmpl
@@ -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