<%inherit file="/base/base.html"/> <%def name="title()"> ${c.repo_name} ${_('Pull request #%s') % c.pull_request.pull_request_id} <%def name="breadcrumbs_links()"> ${h.link_to(_(u'Home'),h.url('/'))} » ${h.link_to(c.repo_name,h.url('changelog_home',repo_name=c.repo_name))} » ${_('Pull request #%s') % c.pull_request.pull_request_id} <%def name="main()">
${self.breadcrumbs()}
%if c.pull_request.is_closed():
${_('Closed %s') % (h.age(c.pull_request.updated_on))} ${_('with status %s') % h.changeset_status_lbl(c.current_changeset_status)}
%endif

${_('Title')}: ${c.pull_request.title}

%if c.current_changeset_status:
[${h.changeset_status_lbl(c.current_changeset_status)}]
%endif
% if len(c.pull_request_pending_reviewers) > 0:
${ungettext('%d reviewer', '%d reviewers',len(c.pull_request_pending_reviewers)) % len(c.pull_request_pending_reviewers)}
%else:
${_('pull request was reviewed by all reviewers')}
%endif
##%if h.is_hg(c.pull_request.org_repo): ## ${_('Mercurial repository')} ##%elif h.is_git(c.pull_request.org_repo): ## ${_('Git repository')} ##%endif ${c.pull_request.org_ref_parts[0]} : ${c.pull_request.org_ref_parts[1]} ${c.pull_request.org_repo.clone_url()}
${h.literal(c.pull_request.description)}
${h.fmt_date(c.pull_request.created_on)}
##DIFF
${_('Compare view')}
##CS
${ungettext('Showing %s commit','Showing %s commits', len(c.cs_ranges)) % len(c.cs_ranges)}
<%include file="/compare/compare_cs.html" /> ## FILES
% if c.limited_diff: ${ungettext('%s file changed', '%s files changed', len(c.files)) % len(c.files)} % else: ${ungettext('%s file changed with %s insertions and %s deletions','%s files changed with %s insertions and %s deletions', len(c.files)) % (len(c.files),c.lines_added,c.lines_deleted)}: %endif
%if not c.files: ${_('No files')} %endif %for fid, change, f, stat in c.files:
${h.link_to(h.safe_unicode(f),h.url.current(anchor=fid))}
${h.fancy_file_stats(stat)}
%endfor
% if c.limited_diff:
${_('Changeset was too big and was cut off...')}
% endif
## REVIEWERS

${_('Pull request reviewers')}

## members goes here !
    %for member,status in c.pull_request_reviewers:
  • gravatar
    ${member.full_name} (${_('owner') if c.pull_request.user_id == member.user_id else _('reviewer')})
    %if not c.pull_request.is_closed() and (h.HasPermissionAny('hg.admin', 'repository.admin')() or c.pull_request.user_id == c.rhodecode_user.user_id): %endif
  • %endfor
%if not c.pull_request.is_closed():
%if h.HasPermissionAny('hg.admin', 'repository.admin')() or c.pull_request.author.user_id == c.rhodecode_user.user_id:
${h.text('user', class_='yui-ac-input')} ${_('Add reviewer to this pull request.')}
${_('save')}
%endif
%endif
## diff block <%namespace name="diff_block" file="/changeset/diff_block.html"/> %for fid, change, f, stat in c.files: ${diff_block.diff_block_simple([c.changes[fid]])} %endfor % if c.limited_diff:

${_('Changeset was too big and was cut off...')}

% endif ## template for inline comment form <%namespace name="comment" file="/changeset/changeset_file_comment.html"/> ${comment.comment_inline_form()} ## render comments and inlines ${comment.generate_comments(include_pr=True)} % if not c.pull_request.is_closed(): ## main comment form and it status ${comment.comments(h.url('pullrequest_comment', repo_name=c.repo_name, pull_request_id=c.pull_request.pull_request_id), c.current_changeset_status, close_btn=True, change_status=c.allowed_to_change_status)} %endif