## -*- coding: utf-8 -*- <%def name="pullrequest_overview(pullrequests)"> %if not len(pullrequests):
${_('Title')} | ${_('Author')} | ${_('Age')} | ${_('From')} | ${_('To')} | |
---|---|---|---|---|---|
## review status %if pr.last_review_status: %else: %endif <% status = pr.user_review_status(c.authuser.user_id) %> %if status: %else: %endif ## delete button %if pr.author.user_id == c.authuser.user_id: ${h.form(url('pullrequest_delete', repo_name=pr.other_repo.repo_name, pull_request_id=pr.pull_request_id),method='delete', style="display:inline-block")} ${h.end_form()} %endif | ${pr.title or _("(no title)")} %if pr.is_closed(): ${_('Closed')} %endif | ${pr.author.username_and_name} | ${h.age(pr.created_on)} | <% org_ref_name=pr.org_ref.rsplit(':', 2)[-2] %> ${pr.org_repo.repo_name}#${org_ref_name} | <% other_ref_name=pr.other_ref.rsplit(':', 2)[-2] %> ${pr.other_repo.repo_name}#${other_ref_name} |