Files
gitea/templates/devtest/badge-actions-svg.tmpl
bytedream 56e42be36d Add flat-square action badge style (#34062)
Adds the `flat-square` style to action badges. Styles can be selected by
adding `?style=<style>` to the badge endpoint. If no style query is
given, or if the query is invalid, the style defaults to `flat`.

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2025-04-01 09:42:10 +00:00

26 lines
814 B
Handlebars

{{template "devtest/devtest-header"}}
<div class="page-content devtest ui container">
<div>
<h1>Actions SVG</h1>
<form class="tw-my-3">
<div class="tw-mb-2">
{{range $fontName := .BadgeFontFamilyNames}}
<label><input name="font" type="radio" value="{{$fontName}}" {{Iif (eq $.SelectedFontFamilyName $fontName) "checked"}}>{{$fontName}}</label>
{{end}}
</div>
<div class="tw-mb-2">
{{range $style := .BadgeStyles}}
<label><input name="style" type="radio" value="{{$style}}" {{Iif (eq $.SelectedStyle $style) "checked"}}>{{$style}}</label>
{{end}}
</div>
<button>submit</button>
</form>
<div class="flex-text-block tw-flex-wrap">
{{range $badgeSVG := .BadgeSVGs}}
<div>{{$badgeSVG}}</div>
{{end}}
</div>
</div>
</div>
{{template "devtest/devtest-footer"}}