Button
Style:
State:
Tooltip
text with tooltip
text with interactive tooltip
Loading
loading ...
loading ...
loading ...
loading ...
GiteaOriginUrl
LocaleNumber
{{.locale.PrettyNumber 1}}
{{.locale.PrettyNumber 12}}
{{.locale.PrettyNumber 123}}
{{.locale.PrettyNumber 1234}}
{{.locale.PrettyNumber 12345}}
{{.locale.PrettyNumber 123456}}
{{.locale.PrettyNumber 1234567}}
TimeSince
Now: {{TimeSince .TimeNow $.locale}}
5s past: {{TimeSince .TimePast5s $.locale}}
5s future: {{TimeSince .TimeFuture5s $.locale}}
2m past: {{TimeSince .TimePast2m $.locale}}
2m future: {{TimeSince .TimeFuture2m $.locale}}
1y past: {{TimeSince .TimePast1y $.locale}}
1y future: {{TimeSince .TimeFuture1y $.locale}}
SVG alignment
Text with SVG
{{svg "octicon-alert"}} {{svg "octicon-x"}} text (block)
{{svg "octicon-alert"}} {{svg "octicon-x"}} text
(inline){{svg "octicon-alert"}} flex every line
{{svg "octicon-alert"}} flex every item
Button with SVG
Input with SVG
{{svg "octicon-search"}}
Dropdown with SVG
simple
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
search ...
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{svg "octicon-x" 14 "remove icon"}}
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{svg "octicon-x" 14 "remove icon"}}
empty multiple dropdown
{{svg "octicon-triangle-down" 14 "dropdown icon"}}
{{svg "octicon-x" 14 "remove icon"}}
clearable search dropdown
Toast
ComboMarkdownEditor
ps: no JS code attached, so just a layout
{{template "shared/combomarkdowneditor" .}}
Flex List
{{svg "octicon-info" 32}}
Flex Item
with label
consists of leading/main/trailing part
main part contains title and (multiple) body lines
{{svg "octicon-repo" 32}}
gitea-org / gitea
{{svg "octicon-repo-forked"}}
when inside header, the trailing part will wrap below the title