mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-05-15 23:40:26 +00:00
Addition to the user menu in navbar:
* display a link to `/devtest` if the instance run mode is dev instead of prod
* I think this is useful because:
* devtest pages are in general useful in development, but are not easy to discover by newcomers
* if the instance uses incorrect run mode, this entry should annoy it's admin into fixing the issue
Improvements to `/devtest`:
* fix error pages links
* add a few headers and explanation for what this page is for
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/10263
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: 0ko <0ko@noreply.codeberg.org>
Co-committed-by: 0ko <0ko@noreply.codeberg.org>
33 lines
689 B
Go HTML Template
33 lines
689 B
Go HTML Template
{{template "base/head" .}}
|
|
|
|
<div role="main" class="page-content ui container">
|
|
<h1>Development pages</h1>
|
|
|
|
<p>Various pages that may be helpful in development or testing</p>
|
|
|
|
<article>
|
|
<h2>Components</h2>
|
|
<ul>
|
|
{{range .SubNames}}
|
|
<li><a href="{{AppSubUrl}}/devtest/{{.}}">{{.}}</a></li>
|
|
{{end}}
|
|
</ul>
|
|
</article>
|
|
|
|
<article>
|
|
<h2>Error pages</h2>
|
|
<ul>
|
|
<li><a href="{{AppSubUrl}}/devtest/error/404">Not found</a></li>
|
|
<li><a href="{{AppSubUrl}}/devtest/error/413">Quota exhaustion</a></li>
|
|
<li><a href="{{AppSubUrl}}/devtest/error/500">Server error</a></li>
|
|
</ul>
|
|
</article>
|
|
</div>
|
|
|
|
<style>
|
|
ul {
|
|
line-height: 2em;
|
|
}
|
|
</style>
|
|
|
|
{{template "base/footer" .}}
|