mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2026-02-03 20:51:07 -05:00
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>
33 lines
678 B
Go HTML Template
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" .}}
|