mirror of
https://github.com/go-gitea/gitea.git
synced 2025-07-03 20:58:44 +03:00

Addresses https://github.com/go-gitea/gitea/issues/34500 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
20 lines
666 B
Handlebars
20 lines
666 B
Handlebars
<!-- make sure this matches the color logic in web_src/js/components/DashboardRepoList.vue -->
|
|
{{if eq .State "pending"}}
|
|
{{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}}
|
|
{{if eq .State "skipped"}}
|
|
{{svg "octicon-skip" 18 "commit-status icon text grey"}}
|
|
{{end}}
|