mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-08 18:04:14 +01:00
369fe56966
Fixes #29082 ![grafik](https://github.com/go-gitea/gitea/assets/1666336/bb2ccde1-ee99-459d-9e74-0fb8ea79e8b3) (cherry picked from commit 7e8ff709401d09467c3eee7c69cd9600d26a97a3)
14 lines
537 B
Go HTML Template
14 lines
537 B
Go HTML Template
{{if .Statuses}}
|
|
{{if and (eq (len .Statuses) 1) .Status.TargetURL}}
|
|
<a class="gt-vm {{.AdditionalClasses}} gt-no-underline" data-tippy="commit-statuses" href="{{.Status.TargetURL}}">
|
|
{{template "repo/commit_status" .Status}}
|
|
</a>
|
|
{{else}}
|
|
<span class="gt-vm {{.AdditionalClasses}}" data-tippy="commit-statuses" tabindex="0">
|
|
{{template "repo/commit_status" .Status}}
|
|
</span>
|
|
{{end}}
|
|
<div class="tippy-target">
|
|
{{template "repo/pulls/status" (dict "CommitStatuses" .Statuses "CommitStatus" .Status)}}
|
|
</div>
|
|
{{end}}
|