|
109 | 109 | </div>
|
110 | 110 | {{end}}
|
111 | 111 | <div class="timeline-item comment merge box">
|
112 |
| - <a class="timeline-avatar text {{if .Issue.PullRequest.HasMerged}}purple |
113 |
| - {{- else if .Issue.IsClosed}}grey |
| 112 | + <a class="timeline-avatar text {{if .Issue.PullRequest.HasMerged}}purple |
| 113 | + {{- else if .Issue.IsClosed}}red |
114 | 114 | {{- else if .IsPullWorkInProgress}}grey
|
115 | 115 | {{- else if .IsFilesConflicted}}grey
|
116 | 116 | {{- else if .IsPullRequestBroken}}red
|
|
151 | 151 | {{end}}
|
152 | 152 | </div>
|
153 | 153 | {{else if .Issue.IsClosed}}
|
154 |
| - <div class="item text"> |
155 |
| - {{if .IsPullRequestBroken}} |
156 |
| - {{$.locale.Tr "repo.pulls.cant_reopen_deleted_branch"}} |
157 |
| - {{else}} |
158 |
| - {{$.locale.Tr "repo.pulls.reopen_to_merge"}} |
| 154 | + <div class="item item-section text gt-f1"> |
| 155 | + <div class="item-section-left"> |
| 156 | + {{if .IsPullRequestBroken}} |
| 157 | + {{$.locale.Tr "repo.pulls.cant_reopen_deleted_branch"}} |
| 158 | + {{else}} |
| 159 | + {{$.locale.Tr "repo.pulls.reopen_to_merge"}} |
| 160 | + {{end}} |
| 161 | + </div> |
| 162 | + {{if and .IsPullBranchDeletable (not .IsPullRequestBroken)}} |
| 163 | + <div class="item-section-right"> |
| 164 | + <button class="delete-button ui button" data-url="{{.DeleteBranchLink}}">{{$.locale.Tr "repo.branch.delete_html"}}</button> |
| 165 | + </div> |
159 | 166 | {{end}}
|
160 | 167 | </div>
|
161 |
| - {{if and .IsPullBranchDeletable ( not .IsPullRequestBroken )}} |
162 |
| - <div class="ui divider"></div> |
163 |
| - <div> |
164 |
| - <a class="delete-button ui red button" href="" data-url="{{.DeleteBranchLink}}">{{$.locale.Tr "repo.branch.delete" .HeadTarget}}</a> |
165 |
| - </div> |
166 |
| - {{end}} |
167 | 168 | {{else if .IsPullFilesConflicted}}
|
168 | 169 | <div class="item text">
|
169 | 170 | {{svg "octicon-x"}}
|
|
472 | 473 | </div>
|
473 | 474 | {{end}}
|
474 | 475 |
|
475 |
| - {{if and .ShowMergeInstructions .Issue.PullRequest.HeadRepo (not .Issue.PullRequest.HasMerged)}} |
| 476 | + {{if and .ShowMergeInstructions .Issue.PullRequest.HeadRepo (not .Issue.PullRequest.HasMerged) (not .Issue.IsClosed)}} |
476 | 477 | {{template "repo/issue/view_content/pull_merge_instruction" (dict "locale" .locale "Issue" .Issue)}}
|
477 | 478 | {{end}}
|
478 | 479 | </div>
|
|
0 commit comments