aboutsummaryrefslogtreecommitdiffstats
path: root/templates/repo/commit_statuses.tmpl
blob: a6f75584a31f4e53a014773dd20df7bff933e5a9 (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="flex-text-inline tw-no-underline {{.AdditionalClasses}}" data-tippy="commit-statuses" href="{{.Status.TargetURL}}">
			{{template "repo/commit_status" .Status}}
		</a>
	{{else}}
		<span class="flex-text-inline {{.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}}