mirror of
https://github.com/go-gitea/gitea.git
synced 2026-04-09 08:27:48 +09:00
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>
20 lines
690 B
Handlebars
20 lines
690 B
Handlebars
<!-- make sure this matches the color logic in web_src/js/components/DashboardRepoList.vue -->
|
|
{{if eq .State "pending"}}
|
|
{{svg "octicon-dot-fill" 18 "commit-status icon tw-text-yellow"}}
|
|
{{end}}
|
|
{{if eq .State "success"}}
|
|
{{svg "octicon-check" 18 "commit-status icon tw-text-green"}}
|
|
{{end}}
|
|
{{if eq .State "error"}}
|
|
{{svg "gitea-exclamation" 18 "commit-status icon tw-text-red"}}
|
|
{{end}}
|
|
{{if eq .State "failure"}}
|
|
{{svg "octicon-x" 18 "commit-status icon tw-text-red"}}
|
|
{{end}}
|
|
{{if eq .State "warning"}}
|
|
{{svg "gitea-exclamation" 18 "commit-status icon tw-text-yellow"}}
|
|
{{end}}
|
|
{{if eq .State "skipped"}}
|
|
{{svg "octicon-skip" 18 "commit-status icon tw-text-text-light"}}
|
|
{{end}}
|