diff --git a/kallithea/templates/pullrequests/pullrequest_data.html b/kallithea/templates/pullrequests/pullrequest_data.html --- a/kallithea/templates/pullrequests/pullrequest_data.html +++ b/kallithea/templates/pullrequests/pullrequest_data.html @@ -65,7 +65,10 @@ id="remove_${pr.pull_request_id}" name="remove_${pr.pull_request_id}" title="${_('Delete Pull Request')}" - onclick="return confirm('${_('Confirm to delete this pull request')}');"> + onclick="return confirm('${_('Confirm to delete this pull request')}') + && ((${len(pr.comments)} == 0) || + confirm('${_('Confirm again to delete this pull request with %s comments') % len(pr.comments)}')) + "> ${h.end_form()}