mirror of
https://github.com/go-gitea/gitea.git
synced 2025-10-26 08:26:22 +01:00
Before: running: <img width="45" height="34" alt="image" src="https://github.com/user-attachments/assets/e2508f98-2f1f-4b7e-a80c-30b406f42531" /> waiting: <img width="44" height="33" alt="image" src="https://github.com/user-attachments/assets/e7c8164e-fdc3-4546-b088-31166544edb0" /> --- After: running: <img width="49" height="43" alt="image" src="https://github.com/user-attachments/assets/b5a9b245-a995-458a-af23-d1723daa3692" /> waiting: <img width="42" height="44" alt="image" src="https://github.com/user-attachments/assets/ff72551e-cfb5-4665-af52-938ef0cf8f1c" /> `gitea-running.svg` is not an icon from the @ primer/octicon library, extracted from the Github page. Github did not assign a clear class name to this icon --------- Signed-off-by: 鲁汀 <131967983+lutinglt@users.noreply.github.com> Co-authored-by: lutinglt <lutinglt@users.noreply.github.com>
24 lines
1.1 KiB
Handlebars
24 lines
1.1 KiB
Handlebars
<!-- This template should be kept the same as web_src/js/components/ActionRunStatus.vue
|
|
Please also update the vue file above if this template is modified.
|
|
action status accepted: success, skipped, waiting, blocked, running, failure, cancelled, unknown
|
|
-->
|
|
{{- $size := Iif .size .size 16 -}}
|
|
{{- $className := Iif .className .className "" -}}
|
|
<span data-tooltip-content="{{ctx.Locale.Tr (printf "actions.status.%s" .status)}}">
|
|
{{if eq .status "success"}}
|
|
{{svg "octicon-check-circle-fill" $size (printf "text green %s" $className)}}
|
|
{{else if eq .status "skipped"}}
|
|
{{svg "octicon-skip" $size (printf "text grey %s" $className)}}
|
|
{{else if eq .status "cancelled"}}
|
|
{{svg "octicon-stop" $size (printf "text grey %s" $className)}}
|
|
{{else if eq .status "waiting"}}
|
|
{{svg "octicon-circle" $size (printf "text grey %s" $className)}}
|
|
{{else if eq .status "blocked"}}
|
|
{{svg "octicon-blocked" $size (printf "text yellow %s" $className)}}
|
|
{{else if eq .status "running"}}
|
|
{{svg "gitea-running" $size (printf "text yellow circular-spin %s" $className)}}
|
|
{{else}}{{/*failure, unknown*/}}
|
|
{{svg "octicon-x-circle-fill" $size (printf "text red %s" $className)}}
|
|
{{end}}
|
|
</span>
|