##// END OF EJS Templates
feat(archive-cache): added extra info on number of evicted caches
feat(archive-cache): added extra info on number of evicted caches

File last commit:

r4974:37813a48 default
r5434:6da054fb default
Show More
pullrequest_merge_checks.mako
82 lines | 3.8 KiB | application/x-mako | MakoHtmlLexer
/ rhodecode / templates / pullrequests / pullrequest_merge_checks.mako
pull-request: introduced new merge-checks....
r1334
<div class="pull-request-wrap">
pull-requests: unified merge checks....
r1335 % if c.pr_merge_possible:
<h2 class="merge-status">
styling: updated old icons based on the new definitions....
r1939 <span class="merge-icon success"><i class="icon-ok"></i></span>
pull-requests: unified merge checks....
r1335 ${_('This pull request can be merged automatically.')}
</h2>
% else:
<h2 class="merge-status">
<span class="merge-icon warning"><i class="icon-false"></i></span>
${_('Merge is not currently possible because of below failed checks.')}
</h2>
% endif
pull-requests: use merge info to show how Pull requests will be merged....
r2053 % if c.pr_merge_errors.items():
pull-request: introduced new merge-checks....
r1334 <ul>
comments: show links to unresolved todos...
r1344 % for pr_check_key, pr_check_details in c.pr_merge_errors.items():
<% pr_check_type = pr_check_details['error_type'] %>
pull-request: introduced new merge-checks....
r1334 <li>
pull-requests: added nicer formatting for merge conflicting files
r4087 <div class="merge-message ${pr_check_type}" data-role="merge-message">
<span style="white-space: pre-line">- ${pr_check_details['message']}</span>
comments: show links to unresolved todos...
r1344 % if pr_check_key == 'todo':
% for co in pr_check_details['details']:
json: fixed calls to json after orjson implementation
r4974 <a class="permalink" href="#comment-${co.comment_id}" onclick="Rhodecode.comments.scrollToComment($('#comment-${co.comment_id}'), 0, ${h.str_json(co.outdated)})"> #${co.comment_id}</a>${'' if loop.last else ','}
comments: show links to unresolved todos...
r1344 % endfor
% endif
pull-requests: added nicer formatting for merge conflicting files
r4087 </div>
pull-request: introduced new merge-checks....
r1334 </li>
% endfor
</ul>
pull-requests: use merge info to show how Pull requests will be merged....
r2053 % endif
pull-request: introduced new merge-checks....
r1334
<div class="pull-request-merge-actions">
% if c.allowed_to_merge:
pull-requests: use merge info to show how Pull requests will be merged....
r2053 ## Merge info, show only if all errors are taken care of
% if not c.pr_merge_errors and c.pr_merge_info:
<div class="pull-request-merge-info">
<ul>
% for pr_merge_key, pr_merge_details in c.pr_merge_info.items():
<li>
- ${pr_merge_details['message']}
</li>
% endfor
</ul>
</div>
% endif
<div>
forms: unified usage of h.secure_form. Make sure we ALWAYS pass in...
r2105 ${h.secure_form(h.route_path('pullrequest_merge', repo_name=c.repo_name, pull_request_id=c.pull_request.pull_request_id), id='merge_pull_request_form', request=request)}
pull-requests: unified merge checks....
r1335 <% merge_disabled = ' disabled' if c.pr_merge_possible is False else '' %>
pull-requests: use close logic next to merge....
r3977
% if c.allowed_to_close:
## close PR action, injected later next to COMMENT button
% if c.pull_request_review_status == c.REVIEW_STATUS_APPROVED:
<a id="close-pull-request-action" class="btn btn-approved-status" href="#close-as-approved" onclick="closePullRequest('${c.REVIEW_STATUS_APPROVED}'); return false;">
${_('Close with status {}').format(h.commit_status_lbl(c.REVIEW_STATUS_APPROVED))}
</a>
% else:
<a id="close-pull-request-action" class="btn btn-rejected-status" href="#close-as-rejected" onclick="closePullRequest('${c.REVIEW_STATUS_REJECTED}'); return false;">
${_('Close with status {}').format(h.commit_status_lbl(c.REVIEW_STATUS_REJECTED))}
</a>
% endif
% endif
<input type="submit" id="merge_pull_request" value="${_('Merge and close Pull Request')}" class="btn${merge_disabled}"${merge_disabled}>
pull-request: introduced new merge-checks....
r1334 ${h.end_form()}
pull-requests: use close logic next to merge....
r3977
<div class="pull-request-merge-refresh">
<a href="#refreshChecks" onclick="refreshMergeChecks(); return false;">${_('refresh checks')}</a>
</div>
pull-request: introduced new merge-checks....
r1334 </div>
% elif c.rhodecode_user.username != h.DEFAULT_USER:
<a class="btn" href="#" onclick="refreshMergeChecks(); return false;">${_('refresh checks')}</a>
pull-requests: use close logic next to merge....
r3977 <input type="submit" value="${_('Merge and close Pull Request')}" class="btn disabled" disabled="disabled" title="${_('You are not allowed to merge this pull request.')}">
pull-request: introduced new merge-checks....
r1334 % else:
<input type="submit" value="${_('Login to Merge this Pull Request')}" class="btn disabled" disabled="disabled">
% endif
</div>
pull-requests: add explicit CLOSE pr action instead of closed status from selector....
r1445
pull-request: introduced new merge-checks....
r1334 </div>