mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-03 21:08:25 +00:00 
			
		
		
		
	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>
		
			
				
	
	
		
			26 lines
		
	
	
		
			814 B
		
	
	
	
		
			Handlebars
		
	
	
	
	
	
			
		
		
	
	
			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"}}
 |