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