mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-18 15:21:04 +00:00
7df036f1a5
Before: <img width="641" alt="截屏2023-03-31 11 12 17" src="https://user-images.githubusercontent.com/17645053/229013472-237701db-2c30-4477-a7b5-d40640361b14.png"> <img width="576" alt="截屏2023-03-31 11 10 48" src="https://user-images.githubusercontent.com/17645053/229013535-571aa8be-8e58-4d93-8641-9b8b5fd90108.png"> After: <img width="709" alt="截屏2023-03-31 11 05 44" src="https://user-images.githubusercontent.com/17645053/229012963-ccd1e9a7-8bea-4197-aa36-865eafbf8858.png"> <img width="528" alt="截屏2023-03-31 11 06 56" src="https://user-images.githubusercontent.com/17645053/229012971-a7313eb6-ecd2-4da3-89a7-c20be33f4611.png">
18 lines
575 B
Handlebars
18 lines
575 B
Handlebars
{{if eq .State "pending"}}
|
|
{{svg "octicon-dot-fill" 18 "commit-status icon text grey"}}
|
|
{{end}}
|
|
{{if eq .State "running"}}
|
|
{{svg "octicon-dot-fill" 18 "commit-status icon text yellow"}}
|
|
{{end}}
|
|
{{if eq .State "success"}}
|
|
{{svg "octicon-check" 18 "commit-status icon text green"}}
|
|
{{end}}
|
|
{{if eq .State "error"}}
|
|
{{svg "gitea-exclamation" 18 "commit-status icon text red"}}
|
|
{{end}}
|
|
{{if eq .State "failure"}}
|
|
{{svg "octicon-x" 18 "commit-status icon text red"}}
|
|
{{end}}
|
|
{{if eq .State "warning"}}
|
|
{{svg "gitea-exclamation" 18 "commit-status icon text yellow"}}
|
|
{{end}}
|