File tree 2 files changed +14
-1
lines changed
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -1369,7 +1369,7 @@ issues.context.reference_issue = Reference in New Issue
1369
1369
issues.context.edit = Edit
1370
1370
issues.context.delete = Delete
1371
1371
issues.no_content = There is no content yet.
1372
- issues.close_issue = Close
1372
+ issues.close_issue = Close issue
1373
1373
issues.pull_merged_at = `merged commit <a class="ui sha" href="%[1]s"><code>%[2]s</code></a> into <b>%[3]s</b> %[4]s`
1374
1374
issues.manually_pull_merged_at = `merged commit <a class="ui sha" href="%[1]s"><code>%[2]s</code></a> into <b>%[3]s</b> manually %[4]s`
1375
1375
issues.close_comment_issue = Comment and Close
@@ -1654,6 +1654,7 @@ pulls.update_branch_rebase = Update branch by rebase
1654
1654
pulls.update_branch_success = Branch update was successful
1655
1655
pulls.update_not_allowed = You are not allowed to update branch
1656
1656
pulls.outdated_with_base_branch = This branch is out-of-date with the base branch
1657
+ pulls.close = Close pull request
1657
1658
pulls.closed_at = `closed this pull request <a id =" %[1]s" href =" #%[1]s" >%[2]s</a>`
1658
1659
pulls.reopened_at = `reopened this pull request <a id =" %[1]s" href =" #%[1]s" >%[2]s</a>`
1659
1660
pulls.merge_instruction_hint = `You can also view <a class =" show-instruction" >command line instructions</a>.`
Original file line number Diff line number Diff line change 116
116
{{.locale.Tr "repo.issues.reopen_issue"}}
117
117
</button>
118
118
{{else}}
119
+ {{if .Issue.IsPull}}
120
+ <button id="status-button" class="ui red basic button" tabindex="6" data-status="{{.locale.Tr "repo.pulls.close"}}" data-status-and-comment="{{.locale.Tr "repo.issues.close_comment_issue"}}" data-status-val="close">
121
+ {{.locale.Tr "repo.pulls.close"}}
122
+ </button>
123
+ {{else}}
119
124
<button id="status-button" class="ui red basic button" tabindex="6" data-status="{{.locale.Tr "repo.issues.close_issue"}}" data-status-and-comment="{{.locale.Tr "repo.issues.close_comment_issue"}}" data-status-val="close">
120
125
{{.locale.Tr "repo.issues.close_issue"}}
121
126
</button>
127
+ {{end}}
122
128
{{end}}
123
129
{{end}}
124
130
<button class="ui green button loading-button" tabindex="5">
167
173
{{.locale.Tr "repo.issues.reopen_issue"}}
168
174
</button>
169
175
{{else}}
176
+ {{if .Issue.IsPull}}
177
+ <button id="status-button" class="ui red basic button" tabindex="6" data-status="{{.locale.Tr "repo.pulls.close"}}" data-status-and-comment="{{.locale.Tr "repo.issues.close_comment_issue"}}" data-status-val="close">
178
+ {{.locale.Tr "repo.pulls.close"}}
179
+ </button>
180
+ {{else}}
170
181
<button id="status-button" class="ui red basic button" tabindex="6" data-status="{{.locale.Tr "repo.issues.close_issue"}}" data-status-and-comment="{{.locale.Tr "repo.issues.close_comment_issue"}}" data-status-val="close">
171
182
{{.locale.Tr "repo.issues.close_issue"}}
172
183
</button>
184
+ {{end}}
173
185
{{end}}
174
186
{{end}}
175
187
<button class="ui green button loading-button" tabindex="5">
You can’t perform that action at this time.
0 commit comments