You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

status.tmpl 1.2KB

1234567891011121314151617181920212223242526272829
  1. <!-- This template should be kept the same as web_src/js/components/ActionRunStatus.vue
  2. Please also update the vue file above if this template is modified.
  3. action status accepted: success, skipped, waiting, blocked, running, failure, cancelled, unknown
  4. -->
  5. {{- $size := 16 -}}
  6. {{- if .size -}}
  7. {{- $size = .size -}}
  8. {{- end -}}
  9. {{- $className := "" -}}
  10. {{- if .className -}}
  11. {{- $className = .className -}}
  12. {{- end -}}
  13. <span class="tw-flex tw-content-center" data-tooltip-content="{{ctx.Locale.Tr (printf "actions.status.%s" .status)}}">
  14. {{if eq .status "success"}}
  15. {{svg "octicon-check-circle-fill" $size (printf "text green %s" $className)}}
  16. {{else if eq .status "skipped"}}
  17. {{svg "octicon-skip" $size (printf "text grey %s" $className)}}
  18. {{else if eq .status "waiting"}}
  19. {{svg "octicon-clock" $size (printf "text yellow %s" $className)}}
  20. {{else if eq .status "blocked"}}
  21. {{svg "octicon-blocked" $size (printf "text yellow %s" $className)}}
  22. {{else if eq .status "running"}}
  23. {{svg "octicon-meter" $size (printf "text yellow job-status-rotate %s" $className)}}
  24. {{else if or (eq .status "failure") or (eq .status "cancelled") or (eq .status "unknown")}}
  25. {{svg "octicon-x-circle-fill" $size (printf "text red %s" $className)}}
  26. {{end}}
  27. </span>