Skip to content

Commit e9bb2e8

Browse files
committed
update delete box as well
1 parent bb9213f commit e9bb2e8

File tree

2 files changed

+14
-16
lines changed

2 files changed

+14
-16
lines changed

options/locale/locale_en-US.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1621,11 +1621,11 @@ pulls.tab_files = Files Changed
16211621
pulls.reopen_to_merge = Please reopen this pull request to perform a merge.
16221622
pulls.cant_reopen_deleted_branch = This pull request cannot be reopened because the branch was deleted.
16231623
pulls.merged = Merged
1624-
pulls.merged_as = Pull request successfully merged and closed
1624+
pulls.merged_success = Pull request successfully merged and closed
1625+
pulls.closed = Pull request closed
16251626
pulls.manually_merged = Manually merged
16261627
pulls.merged_info_text = The branch %s can now be deleted.
16271628
pulls.is_closed = The pull request has been closed.
1628-
pulls.has_merged = The pull request has been merged.
16291629
pulls.title_wip_desc = `<a href="#">Start the title with <strong>%s</strong></a> to prevent the pull request from being merged accidentally.`
16301630
pulls.cannot_merge_work_in_progress = This pull request is marked as a work in progress.
16311631
pulls.still_in_progress = Still in progress?

templates/repo/issue/view_content/pull.tmpl

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,10 @@
133133
{{if .Issue.PullRequest.HasMerged}}
134134
<div class="item item-section text gt-f1">
135135
<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>
145140
</div>
146141
{{if .IsPullBranchDeletable}}
147142
<div class="item-section-right">
@@ -152,11 +147,14 @@
152147
{{else if .Issue.IsClosed}}
153148
<div class="item item-section text gt-f1">
154149
<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>
160158
</div>
161159
{{if and .IsPullBranchDeletable (not .IsPullRequestBroken)}}
162160
<div class="item-section-right">

0 commit comments

Comments
 (0)