forgejo/templates/demo/buttons.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

51 lines
1.1 KiB
Go HTML Template

{{template "base/head" .}}
<div class="page-content ui container">
<h1>Buttons</h1>
<p>
Main types:
<a href="#primary">primary</a>,
<a href="#secondary">secondary</a>,
<a href="#danger">dangerous</a>.
<br>
</p>
<p>
Can optionally contain an icon.
</p>
<h2 id="primary">Primary</h2>
<div class="button-sequence">
<button class="primary button" type="button">
Follow
</button>
<a class="primary disabled button" href="">
{{svg "octicon-person"}}
{{ctx.Locale.Tr "user.follow"}}
</a>
</div>
<h2 id="secondary">Secondary</h2>
<div class="button-sequence">
<button class="secondary button" type="button">
Follow
</button>
<a class="secondary disabled button" href="">
{{svg "octicon-person"}}
{{ctx.Locale.Tr "user.unfollow"}}
</a>
</div>
<h2 id="danger">Dangerous (<code>danger</code>)</h2>
<div class="button-sequence">
<button class="danger button" type="button">
Delete
</button>
<a class="danger disabled button" href="">
{{svg "octicon-trash"}}
Delete
</a>
</div>
</div>
{{template "base/footer" .}}