%inherit file="/base/base.mako"/> <%def name="title()"> ${_('%s Pull Request #%s') % (c.repo_name, c.pull_request.pull_request_id)} %if c.rhodecode_name: · ${h.branding(c.rhodecode_name)} %endif %def> <%def name="breadcrumbs_links()"> ${c.pull_request.title} %if c.pull_request.is_closed(): (${_('Closed')}) %endif
%def> <%def name="menu_bar_nav()"> ${self.menu_items(active='repositories')} %def> <%def name="menu_bar_subnav()"> ${self.repo_menu(active='showpullrequest')} %def> <%def name="main()">
% if c.at_version_num is None:
% else:
${len(c.comment_versions[None]['at'])}/${len(c.inline_versions[None]['at'])}
% endif
|
% if c.versions:
${_('latest')}
% else:
${_('initial')}
% endif
|
${c.pull_request_latest.source_ref_parts.commit_id[:6]}
|
${_('created')} ${h.age_component(c.pull_request_latest.updated_on)} | % if c.versions and c.at_version_num in [None, 'latest']: ${_('Show all versions')} % endif |
% if c.at_version_num == ver_pr:
% else:
${len(c.comment_versions[ver_pr]['at'])}/${len(c.inline_versions[ver_pr]['at'])}
% endif
|
v${ver_pos}
|
${ver.source_ref_parts.commit_id[:6]}
|
${_('created')} ${h.age_component(ver.updated_on)} | % if c.at_version_num == ver_pr: ${_('Show all versions')} % endif |
<% outdated_comm_count_ver = len(c.inline_versions[c.at_version_num]['outdated']) %> <% general_outdated_comm_count_ver = len(c.comment_versions[c.at_version_num]['outdated']) %> % if c.at_version: <% inline_comm_count_ver = len(c.inline_versions[c.at_version_num]['display']) %> <% general_comm_count_ver = len(c.comment_versions[c.at_version_num]['display']) %> ${_('Comments at this version')}: % else: <% inline_comm_count_ver = len(c.inline_versions[c.at_version_num]['until']) %> <% general_comm_count_ver = len(c.comment_versions[c.at_version_num]['until']) %> ${_('Comments for this pull request')}: % endif %if general_comm_count_ver: ${_("%d General ") % general_comm_count_ver} %else: ${_("%d General ") % general_comm_count_ver} %endif %if inline_comm_count_ver: , ${_("%d Inline") % inline_comm_count_ver} %else: , ${_("%d Inline") % inline_comm_count_ver} %endif %if outdated_comm_count_ver: , ${_("%d Outdated") % outdated_comm_count_ver} | ${_('show outdated comments')} %else: , ${_("%d Outdated") % outdated_comm_count_ver} %endif | ||||
% if c.at_version:
Changed commits: * added: ${len(c.changes.added)} * removed: ${len(c.changes.removed)} % if not (c.file_changes.added+c.file_changes.modified+c.file_changes.removed): No file changes found % else: Changed files: %for file_name in c.file_changes.added: * A ${file_name} %endfor %for file_name in c.file_changes.modified: * M ${file_name} %endfor %for file_name in c.file_changes.removed: * R ${file_name} %endfor % endif% endif |