mirror of https://github.com/go-gitea/gitea
Simplify 404/500 page (#31409)
parent
6a96deb589
commit
f4921b9daa
Before Width: | Height: | Size: 4.4 KiB |
Before Width: | Height: | Size: 5.1 KiB |
@ -1,10 +1,16 @@ |
|||||||
{{template "base/head" .}} |
{{template "base/head" .}} |
||||||
<div role="main" aria-label="{{.Title}}" class="page-content {{if .IsRepo}}repository{{end}}"> |
<div role="main" aria-label="{{.Title}}" class="page-content {{if .IsRepo}}repository{{end}}"> |
||||||
{{if .IsRepo}}{{template "repo/header" .}}{{end}} |
{{if .IsRepo}}{{template "repo/header" .}}{{end}} |
||||||
<div class="ui container tw-text-center"> |
<div class="ui container"> |
||||||
<img class="tw-max-w-[80vw] tw-py-16" src="{{AssetUrlPrefix}}/img/404.png" alt="404"> |
<div class="status-page-error"> |
||||||
<p>{{if .NotFoundPrompt}}{{.NotFoundPrompt}}{{else}}{{ctx.Locale.Tr "error404"}}{{end}}</p> |
<div class="status-page-error-title">404 Not Found</div> |
||||||
{{if .NotFoundGoBackURL}}<a class="ui button" href="{{.NotFoundGoBackURL}}">{{ctx.Locale.Tr "go_back"}}</a>{{end}} |
<div class="tw-text-center"> |
||||||
|
<div class="tw-my-4">{{if .NotFoundPrompt}}{{.NotFoundPrompt}}{{else}}{{ctx.Locale.Tr "error404"}}{{end}}</div> |
||||||
|
{{if .NotFoundGoBackURL}} |
||||||
|
<a class="tw-block tw-my-4" href="{{.NotFoundGoBackURL}}">{{ctx.Locale.Tr "go_back"}}</a> |
||||||
|
{{end}} |
||||||
|
</div> |
||||||
|
</div> |
||||||
</div> |
</div> |
||||||
</div> |
</div> |
||||||
{{template "base/footer" .}} |
{{template "base/footer" .}} |
||||||
|
Loading…
Reference in new issue