2023-02-20 01:43:04 -07:00
|
|
|
{{if .Statuses}}
|
|
|
|
{{if and (eq (len .Statuses) 1) .Status.TargetURL}}
|
2024-03-22 07:45:10 -06:00
|
|
|
<a class="tw-align-middle {{.AdditionalClasses}} tw-no-underline" data-tippy="commit-statuses" href="{{.Status.TargetURL}}">
|
2023-02-20 01:43:04 -07:00
|
|
|
{{template "repo/commit_status" .Status}}
|
|
|
|
</a>
|
|
|
|
{{else}}
|
2024-03-22 07:45:10 -06:00
|
|
|
<span class="tw-align-middle {{.AdditionalClasses}}" data-tippy="commit-statuses" tabindex="0">
|
2023-02-20 01:43:04 -07:00
|
|
|
{{template "repo/commit_status" .Status}}
|
|
|
|
</span>
|
|
|
|
{{end}}
|
2023-11-02 08:49:02 -06:00
|
|
|
<div class="tippy-target">
|
|
|
|
{{template "repo/pulls/status" (dict "CommitStatuses" .Statuses "CommitStatus" .Status)}}
|
2020-12-19 20:13:12 -07:00
|
|
|
</div>
|
2023-02-20 01:43:04 -07:00
|
|
|
{{end}}
|