summaryrefslogtreecommitdiffstats
path: root/templates/repo/commit_statuses.tmpl
blob: f451ac06a1a9ebded37beae11545cf088f288acb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
{{if .Statuses}}
	{{if and (eq (len .Statuses) 1) .Status.TargetURL}}
		<a class="tw-align-middle {{.AdditionalClasses}} tw-no-underline" data-tippy="commit-statuses" href="{{.Status.TargetURL}}">
			{{template "repo/commit_status" .Status}}
		</a>
	{{else}}
		<span class="tw-align-middle {{.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}}