%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 in [None, 'latest']:
% else:
${len(c.inline_versions[None])}
% 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 == ver_pr:
% else:
${len(c.inline_versions[ver_pr])}
% endif
|
v${ver_pos}
|
${ver.source_ref_parts.commit_id[:6]}
|
${_('created')} ${h.age_component(ver.updated_on)} | % if c.at_version == ver_pr: ${_('Show all versions')} % endif |
<% inline_comm_count_ver = len(c.inline_versions[ver_pr])%> | ${_('Comments for this version')}: %if c.comments: ${_("%d General ") % len(c.comments)} %else: ${_("%d General ") % len(c.comments)} %endif <% inline_comm_count_ver = len(c.inline_versions[c.at_version_num])%> %if inline_comm_count_ver: , ${_("%d Inline") % inline_comm_count_ver} %else: , ${_("%d Inline") % inline_comm_count_ver} %endif %if c.outdated_cnt: , ${_("%d Outdated") % c.outdated_cnt} | ${_('show outdated comments')} %else: , ${_("%d Outdated") % c.outdated_cnt} %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 |