[THEME] refactor display of 404/500 error pages
This commit is contained in:
parent
b7ea2ea463
commit
186f1f5669
3 changed files with 15 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
|||
<div role="main" aria-label="{{.Title}}" class="page-content ui center gt-w-screen {{if .IsRepo}}repository{{end}}">
|
||||
{{if .IsRepo}}{{template "repo/header" .}}{{end}}
|
||||
<div class="ui container center">
|
||||
<p style="margin-top: 100px"><img src="{{AssetUrlPrefix}}/img/404.png" alt="404" style="max-width: 100%"></p>
|
||||
<h1 style="margin-top: 100px" class="error-code">404</h1>
|
||||
<p>{{if .NotFoundPrompt}}{{.NotFoundPrompt}}{{else}}{{ctx.Locale.Tr "error404" | Safe}}{{end}}</p>
|
||||
{{if .NotFoundGoBackURL}}<a class="ui button green" href="{{.NotFoundGoBackURL}}">{{ctx.Locale.Tr "go_back"}}</a>{{end}}
|
||||
|
||||
|
|
|
@ -33,7 +33,10 @@
|
|||
<style> .ui.message.flash-message { text-align: left; } </style>
|
||||
{{template "base/alert" .}}
|
||||
</div>
|
||||
<p class="gt-mt-5 center"><img src="{{AssetUrlPrefix}}/img/500.png" alt="Internal Server Error"></p>
|
||||
<div class="ui container center">
|
||||
<h1 class="gt-mt-5 error-code">500</h1>
|
||||
<p>Internal Server Error</p>
|
||||
</div>
|
||||
<div class="divider"></div>
|
||||
<div class="ui container gt-my-5">
|
||||
{{if .ErrorMsg}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue