view rhodecode/templates/pullrequests/pullrequest_show_all.html @ 3527:87c97fcea029 beta

Adding the context bar too all pages related to a Repository. Deleted top menu items that are on the context bar already.
author Leonardo <leo@unity3d.com>
date Mon, 04 Mar 2013 12:15:34 +0100
parents f74be3359044
children 9e677f6d34cb
line wrap: on
line source

<%inherit file="/base/base.html"/>

<%def name="title()">
    ${c.repo_name} ${_('all pull requests')}
</%def>

<%def name="breadcrumbs_links()">
    ${h.link_to(_(u'Home'),h.url('/'))}
    &raquo;
    ${h.repo_link(c.rhodecode_db_repo.groups_and_repo)}
    &raquo;
    ${_('pull requests')}
</%def>

<%def name="main()">
${self.context_bar('showpullrequest')}
<div class="box">
    <!-- box / title -->
    <div class="title">
        ${self.breadcrumbs()}
    </div>

    %for pr in c.pull_requests:
        <div>
          <h4  style="border:0px;padding:0px">
            %if pr.is_closed():
                <img src="${h.url('/images/icons/lock_go.png')}" title="${_('Closed')}"/>
            %endif
            <img src="${h.url('/images/icons/flag_status_%s.png' % str(pr.last_review_status))}" />
            <a href="${h.url('pullrequest_show',repo_name=c.repo_name,pull_request_id=pr.pull_request_id)}">
            ${_('Pull request #%s opened by %s on %s') % (pr.pull_request_id, pr.author.full_name, h.fmt_date(pr.created_on))}
            </a>
          </h4>
          <h5 style="border:0px;padding-bottom:0px">${_('Title')}: ${pr.title}</h5>
          <div style="padding:0px 24px">${pr.description}</div>
          <div style="border-bottom: 1px solid #DDD;margin:10px 20px;padding-bottom:10px"></div>
        </div>
    %endfor

</div>

<script type="text/javascript"></script>

</%def>