forgejo/templates/demo/list.tmpl
0ko 3cafb7fa6c chore(ui): change /devtest to /-/demo (#11019)
It has always been largely used for showcasing UI elements but that name didn't work too well for it.

Testing:
Some of existing tests depend on these pages, making it redundant to create extra tests.

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/11019
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
2026-01-26 13:12:25 +01:00

33 lines
678 B
Go HTML Template

{{template "base/head" .}}
<div role="main" class="page-content ui container">
<h1>Demo 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}}/-/demo/{{.}}">{{.}}</a></li>
{{end}}
</ul>
</article>
<article>
<h2>Error pages</h2>
<ul>
<li><a href="{{AppSubUrl}}/-/demo/error/404">Not found</a></li>
<li><a href="{{AppSubUrl}}/-/demo/error/413">Quota exhaustion</a></li>
<li><a href="{{AppSubUrl}}/-/demo/error/500">Server error</a></li>
</ul>
</article>
</div>
<style>
ul {
line-height: 2em;
}
</style>
{{template "base/footer" .}}