mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-04-25 04:57:31 +00:00

* add testing * make each page accessible via `/devtest/error` * allow translating the `Page not found` part of the title * code: improve consistency, remove unused * devtest: put index page in a container to fix alignment * 500: make navbar more like the real one, remove fake menu button * deadcode: remove unused `func NotFound`: it was added inbdd32f152d
and the only usage was removed in1bfb0a24d8
Preview: https://codeberg.org/attachments/1b75afb3-e898-410f-be02-f036a5400143 Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7274 Reviewed-by: Gusted <gusted@noreply.codeberg.org> Reviewed-by: Beowulf <beowulf@beocode.eu>
26 lines
481 B
Go HTML Template
26 lines
481 B
Go HTML Template
{{template "base/head" .}}
|
|
|
|
<div role="main" class="page-content ui container">
|
|
<ul>
|
|
{{range .SubNames}}
|
|
<li><a href="{{AppSubUrl}}/devtest/{{.}}">{{.}}</a></li>
|
|
{{end}}
|
|
</ul>
|
|
|
|
<article>
|
|
<h2>Error pages</h2>
|
|
<ul>
|
|
<li><a href="./error/404">Not found</a></li>
|
|
<li><a href="./error/413">Quota exhaustion</a></li>
|
|
<li><a href="./error/500">Server error</a></li>
|
|
</ul>
|
|
</article>
|
|
</div>
|
|
|
|
<style>
|
|
ul {
|
|
line-height: 2em;
|
|
}
|
|
</style>
|
|
|
|
{{template "base/footer" .}}
|