mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-11 16:50:49 +03:00
a6a79add68
Backport #26576 by @yp05327 Before: ![image](https://github.com/go-gitea/gitea/assets/18380374/717c726d-d3ae-4ea3-86bf-36fd8430f1ba) After: ![image](https://github.com/go-gitea/gitea/assets/18380374/f4508428-380a-4b44-9cc2-fa9483971808) Co-authored-by: yp05327 <576951401@qq.com>
15 lines
502 B
Handlebars
15 lines
502 B
Handlebars
<!-- make sure this matches the color logic in web_src/js/components/DashboardRepoList.vue -->
|
|
<span class="gt-df">
|
|
{{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}}
|
|
</span>
|