Browse Source

404 and 500 page ui

tags/v1.2.0-rc1
FuXiaoHei 11 years ago
parent
commit
13b6e06943
4 changed files with 7 additions and 3 deletions
  1. BIN
      public/img/404.png
  2. BIN
      public/img/500.png
  3. +3
    -2
      templates/status/404.tmpl
  4. +4
    -1
      templates/status/500.tmpl

BIN
public/img/404.png View File

Before After
Width: 512  |  Height: 224  |  Size: 9.8 kB

BIN
public/img/500.png View File

Before After
Width: 512  |  Height: 224  |  Size: 12 kB

+ 3
- 2
templates/status/404.tmpl View 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" .}}

+ 4
- 1
templates/status/500.tmpl View 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" .}}

Loading…
Cancel
Save