${_('This pull request can be merged automatically.')}
% else:
${_('Merge is not currently possible because of below failed checks.')}
% endif
% for pr_check_key, pr_check_details in c.pr_merge_errors.items():
<% pr_check_type = pr_check_details['error_type'] %>
- ${pr_check_details['message']}
% if pr_check_key == 'todo':
% for co in pr_check_details['details']:
#${co.comment_id}${'' if loop.last else ','}
% endfor
% endif
% endfor
% if c.allowed_to_merge:
${h.secure_form(url('pullrequest_merge', repo_name=c.repo_name, pull_request_id=c.pull_request.pull_request_id), id='merge_pull_request_form')}
<% merge_disabled = ' disabled' if c.pr_merge_possible is False else '' %>
${_('refresh checks')}
${h.end_form()}