mirror of
https://github.com/go-gitea/gitea.git
synced 2026-05-28 02:38:44 +09:00
6e7991316c
Replace Fomantic/custom CSS text utility classes with their Tailwind equivalents: - `.text.<color>` compound classes → `tw-text-<color>` classes - `.text.small` (`font-size: 0.75em`) → `tw-text-xs` (11px) - `.text.truncate` (`overflow-x: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block`) → `tw-inline-block tw-truncate` Remove the now-unused CSS rules from `base.css` and `dashboard.css`. --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
24 lines
1.2 KiB
Handlebars
24 lines
1.2 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 "tw-text-green %s" $className)}}
|
|
{{else if eq .status "skipped"}}
|
|
{{svg "octicon-skip" $size (printf "tw-text-text-light %s" $className)}}
|
|
{{else if eq .status "cancelled"}}
|
|
{{svg "octicon-stop" $size (printf "tw-text-text-light %s" $className)}}
|
|
{{else if eq .status "waiting"}}
|
|
{{svg "octicon-circle" $size (printf "tw-text-text-light %s" $className)}}
|
|
{{else if eq .status "blocked"}}
|
|
{{svg "octicon-blocked" $size (printf "tw-text-yellow %s" $className)}}
|
|
{{else if eq .status "running"}}
|
|
{{svg "gitea-running" $size (printf "tw-text-yellow rotate-clockwise %s" $className)}}
|
|
{{else}}{{/*failure, unknown*/}}
|
|
{{svg "octicon-x-circle-fill" $size (printf "tw-text-red %s" $className)}}
|
|
{{end}}
|
|
</span>
|