|
133 | 133 | {{if .Issue.PullRequest.HasMerged}} |
134 | 134 | <div class="item item-section text gt-f1"> |
135 | 135 | <div class="item-section-left"> |
136 | | - {{if .Issue.PullRequest.MergedCommitID}} |
137 | | - {{$link := printf "%s/commit/%s" $.Repository.Link (.Issue.PullRequest.MergedCommitID|PathEscape)}} |
138 | | - <h3>{{$.locale.Tr "repo.pulls.merged_as"}}</h3> |
139 | | - <div class="merge-section-info"> |
140 | | - {{$.locale.Tr "repo.pulls.merged_info_text" (printf "<code>%s</code>" .HeadTarget) | Str2html}} |
141 | | - </div> |
142 | | - {{else}} |
143 | | - {{$.locale.Tr "repo.pulls.has_merged"}} |
144 | | - {{end}} |
| 136 | + <h3 class="gt-mb-3">{{$.locale.Tr "repo.pulls.merged_success"}}</h3> |
| 137 | + <div class="merge-section-info"> |
| 138 | + {{$.locale.Tr "repo.pulls.merged_info_text" (printf "<code>%s</code>" .HeadTarget) | Str2html}} |
| 139 | + </div> |
145 | 140 | </div> |
146 | 141 | {{if .IsPullBranchDeletable}} |
147 | 142 | <div class="item-section-right"> |
|
152 | 147 | {{else if .Issue.IsClosed}} |
153 | 148 | <div class="item item-section text gt-f1"> |
154 | 149 | <div class="item-section-left"> |
155 | | - {{if .IsPullRequestBroken}} |
156 | | - {{$.locale.Tr "repo.pulls.cant_reopen_deleted_branch"}} |
157 | | - {{else}} |
158 | | - {{$.locale.Tr "repo.pulls.reopen_to_merge"}} |
159 | | - {{end}} |
| 150 | + <h3 class="gt-mb-3">{{$.locale.Tr "repo.pulls.closed"}}</h3> |
| 151 | + <div class="merge-section-info"> |
| 152 | + {{if .IsPullRequestBroken}} |
| 153 | + {{$.locale.Tr "repo.pulls.cant_reopen_deleted_branch"}} |
| 154 | + {{else}} |
| 155 | + {{$.locale.Tr "repo.pulls.reopen_to_merge"}} |
| 156 | + {{end}} |
| 157 | + </div> |
160 | 158 | </div> |
161 | 159 | {{if and .IsPullBranchDeletable (not .IsPullRequestBroken)}} |
162 | 160 | <div class="item-section-right"> |
|
0 commit comments