2019-06-30 16:57:59 +09:00
|
|
|
{{if $.LatestCommitStatus}}
|
2021-04-11 12:46:37 +09:00
|
|
|
{{if not $.Issue.PullRequest.HasMerged}}
|
|
|
|
<div class="ui top attached header">
|
|
|
|
{{if eq .LatestCommitStatus.State "pending"}}
|
2022-06-28 05:58:46 +09:00
|
|
|
{{$.locale.Tr "repo.pulls.status_checking"}}
|
2021-04-11 12:46:37 +09:00
|
|
|
{{else if eq .LatestCommitStatus.State "success"}}
|
2022-06-28 05:58:46 +09:00
|
|
|
{{$.locale.Tr "repo.pulls.status_checks_success"}}
|
2021-04-11 12:46:37 +09:00
|
|
|
{{else if eq .LatestCommitStatus.State "warning"}}
|
2022-06-28 05:58:46 +09:00
|
|
|
{{$.locale.Tr "repo.pulls.status_checks_warning"}}
|
2021-04-11 12:46:37 +09:00
|
|
|
{{else if eq .LatestCommitStatus.State "failure"}}
|
2022-06-28 05:58:46 +09:00
|
|
|
{{$.locale.Tr "repo.pulls.status_checks_failure"}}
|
2021-04-11 12:46:37 +09:00
|
|
|
{{else if eq .LatestCommitStatus.State "error"}}
|
2022-06-28 05:58:46 +09:00
|
|
|
{{$.locale.Tr "repo.pulls.status_checks_error"}}
|
2021-04-11 12:46:37 +09:00
|
|
|
{{else}}
|
2022-06-28 05:58:46 +09:00
|
|
|
{{$.locale.Tr "repo.pulls.status_checking"}}
|
2021-04-11 12:46:37 +09:00
|
|
|
{{end}}
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2019-06-30 16:57:59 +09:00
|
|
|
|
2021-04-11 12:46:37 +09:00
|
|
|
{{range $.LatestCommitStatuses}}
|
|
|
|
<div class="ui attached segment">
|
|
|
|
<span>{{template "repo/commit_status" .}}</span>
|
|
|
|
<span class="ui">{{.Context}} <span class="text grey">{{.Description}}</span></span>
|
|
|
|
<div class="ui right">
|
|
|
|
{{if $.is_context_required}}
|
2022-06-28 05:58:46 +09:00
|
|
|
{{if (call $.is_context_required .Context)}}<div class="ui label">{{$.locale.Tr "repo.pulls.status_checks_requested"}}</div>{{end}}
|
2021-04-11 12:46:37 +09:00
|
|
|
{{end}}
|
2022-06-28 05:58:46 +09:00
|
|
|
<span class="ui">{{if .TargetURL}}<a href="{{.TargetURL}}">{{$.locale.Tr "repo.pulls.status_checks_details"}}</a>{{end}}</span>
|
2021-04-11 12:46:37 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|
2019-09-18 14:39:45 +09:00
|
|
|
{{end}}
|