|
1 | 1 | {{if $.LatestCommitStatus}}
|
2 |
| - <div class="ui top attached header"> |
3 |
| - {{if eq .LatestCommitStatus.State "pending"}} |
4 |
| - {{$.i18n.Tr "repo.pulls.status_checking"}} |
5 |
| - {{else if eq .LatestCommitStatus.State "success"}} |
6 |
| - {{$.i18n.Tr "repo.pulls.status_checks_success"}} |
7 |
| - {{else if eq .LatestCommitStatus.State "warning"}} |
8 |
| - {{$.i18n.Tr "repo.pulls.status_checks_warning"}} |
9 |
| - {{else if eq .LatestCommitStatus.State "failure"}} |
10 |
| - {{$.i18n.Tr "repo.pulls.status_checks_failure"}} |
11 |
| - {{else if eq .LatestCommitStatus.State "error"}} |
12 |
| - {{$.i18n.Tr "repo.pulls.status_checks_error"}} |
13 |
| - {{else}} |
14 |
| - {{$.i18n.Tr "repo.pulls.status_checking"}} |
15 |
| - {{end}} |
16 |
| - </div> |
| 2 | + {{if not $.Issue.PullRequest.HasMerged}} |
| 3 | + <div class="ui top attached header"> |
| 4 | + {{if eq .LatestCommitStatus.State "pending"}} |
| 5 | + {{$.i18n.Tr "repo.pulls.status_checking"}} |
| 6 | + {{else if eq .LatestCommitStatus.State "success"}} |
| 7 | + {{$.i18n.Tr "repo.pulls.status_checks_success"}} |
| 8 | + {{else if eq .LatestCommitStatus.State "warning"}} |
| 9 | + {{$.i18n.Tr "repo.pulls.status_checks_warning"}} |
| 10 | + {{else if eq .LatestCommitStatus.State "failure"}} |
| 11 | + {{$.i18n.Tr "repo.pulls.status_checks_failure"}} |
| 12 | + {{else if eq .LatestCommitStatus.State "error"}} |
| 13 | + {{$.i18n.Tr "repo.pulls.status_checks_error"}} |
| 14 | + {{else}} |
| 15 | + {{$.i18n.Tr "repo.pulls.status_checking"}} |
| 16 | + {{end}} |
| 17 | + </div> |
| 18 | + {{end}} |
17 | 19 |
|
18 | 20 | {{range $.LatestCommitStatuses}}
|
19 | 21 | <div class="ui attached segment">
|
20 | 22 | <span>{{template "repo/commit_status" .}}</span>
|
21 | 23 | <span class="ui">{{.Context}} <span class="text grey">{{.Description}}</span></span>
|
22 | 24 | <div class="ui right">
|
23 | 25 | {{if $.is_context_required}}
|
24 |
| - {{if (call $.is_context_required .Context)}}<div class="ui label">{{$.i18n.Tr "repo.pulls.status_checks_requested"}}</div>{{end}} |
| 26 | + {{if (call $.is_context_required .Context)}}<div class="ui label">{{$.i18n.Tr "repo.pulls.status_checks_requested"}}</div>{{end}} |
25 | 27 | {{end}}
|
26 | 28 | <span class="ui">{{if .TargetURL}}<a href="{{.TargetURL}}">{{$.i18n.Tr "repo.pulls.status_checks_details"}}</a>{{end}}</span>
|
27 | 29 | </div>
|
|
0 commit comments