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>
51 lines
1.1 KiB
Go HTML Template
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" .}}
|