2023-04-19 13:42:53 +08:00
|
|
|
<!-- 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.
|
2023-05-22 12:17:24 +08:00
|
|
|
action status accepted: success, skipped, waiting, blocked, running, failure, cancelled, unknown
|
2023-04-19 13:42:53 +08:00
|
|
|
-->
|
2024-12-16 11:18:00 +08:00
|
|
|
{{- $size := Iif .size .size 16 -}}
|
|
|
|
|
{{- $className := Iif .className .className "" -}}
|
|
|
|
|
<span data-tooltip-content="{{ctx.Locale.Tr (printf "actions.status.%s" .status)}}">
|
2023-04-19 13:42:53 +08:00
|
|
|
{{if eq .status "success"}}
|
2026-02-22 23:56:33 +01:00
|
|
|
{{svg "octicon-check-circle-fill" $size (printf "tw-text-green %s" $className)}}
|
2023-04-19 13:42:53 +08:00
|
|
|
{{else if eq .status "skipped"}}
|
2026-02-22 23:56:33 +01:00
|
|
|
{{svg "octicon-skip" $size (printf "tw-text-text-light %s" $className)}}
|
2024-12-16 11:18:00 +08:00
|
|
|
{{else if eq .status "cancelled"}}
|
2026-02-22 23:56:33 +01:00
|
|
|
{{svg "octicon-stop" $size (printf "tw-text-text-light %s" $className)}}
|
2023-04-19 13:42:53 +08:00
|
|
|
{{else if eq .status "waiting"}}
|
2026-02-22 23:56:33 +01:00
|
|
|
{{svg "octicon-circle" $size (printf "tw-text-text-light %s" $className)}}
|
2023-04-19 13:42:53 +08:00
|
|
|
{{else if eq .status "blocked"}}
|
2026-02-22 23:56:33 +01:00
|
|
|
{{svg "octicon-blocked" $size (printf "tw-text-yellow %s" $className)}}
|
2023-04-19 13:42:53 +08:00
|
|
|
{{else if eq .status "running"}}
|
2026-02-22 23:56:33 +01:00
|
|
|
{{svg "gitea-running" $size (printf "tw-text-yellow rotate-clockwise %s" $className)}}
|
2024-12-16 11:18:00 +08:00
|
|
|
{{else}}{{/*failure, unknown*/}}
|
2026-02-22 23:56:33 +01:00
|
|
|
{{svg "octicon-x-circle-fill" $size (printf "tw-text-red %s" $className)}}
|
2023-01-31 09:45:19 +08:00
|
|
|
{{end}}
|
2023-05-09 22:39:16 +03:00
|
|
|
</span>
|