mirror of
https://github.com/go-gitea/gitea.git
synced 2026-03-04 02:05:53 +01: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>
27 lines
823 B
Handlebars
27 lines
823 B
Handlebars
{{/* the logic should be kept the same as getIssueIcon/getIssueColorClass in JS code */}}
|
|
{{- if .IsPull -}}
|
|
{{- if not .PullRequest -}}
|
|
No PullRequest
|
|
{{- else -}}
|
|
{{- if .IsClosed -}}
|
|
{{- if .PullRequest.HasMerged -}}
|
|
{{- svg "octicon-git-merge" 16 "tw-text-purple" -}}
|
|
{{- else -}}
|
|
{{- svg "octicon-git-pull-request-closed" 16 "tw-text-red" -}}
|
|
{{- end -}}
|
|
{{- else -}}
|
|
{{- if .PullRequest.IsWorkInProgress ctx -}}
|
|
{{- svg "octicon-git-pull-request-draft" 16 "tw-text-text-light" -}}
|
|
{{- else -}}
|
|
{{- svg "octicon-git-pull-request" 16 "tw-text-green" -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- else -}}
|
|
{{- if .IsClosed -}}
|
|
{{- svg "octicon-issue-closed" 16 "tw-text-red" -}}
|
|
{{- else -}}
|
|
{{- svg "octicon-issue-opened" 16 "tw-text-green" -}}
|
|
{{- end -}}
|
|
{{- end -}}
|