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

<%namespace name="pullrequest_data" file="pullrequest_data.html"/>

<%block name="title">
    ${_('My Pull Requests')}
</%block>

<%def name="breadcrumbs_links()">
    ${_('My Pull Requests')}
</%def>

<%block name="header_menu">
    ${self.menu('my_pullrequests')}
</%block>

<%def name="main()">

<div class="box">
    <!-- box / title -->
    <div class="title">
        ${self.breadcrumbs()}
    </div>

    <div class="normal-indent">
        <div>
        %if c.closed:
            ${h.link_to(_('Hide closed pull requests (only show open pull requests)'), h.url('my_pullrequests'))}
        %else:
            ${h.link_to(_('Show closed pull requests (in addition to open pull requests)'), h.url('my_pullrequests',closed=1))}
        %endif
        </div>
    </div>

    <div class="pullrequests_section_head">${_('Pull Requests Created by Me')}</div>
    ${pullrequest_data.pullrequest_overview(c.my_pull_requests)}

    <div class="pullrequests_section_head" style="clear:both">${_('Pull Requests I Participate In')}</div>
    ${pullrequest_data.pullrequest_overview(c.participate_in_pull_requests)}

</div>
</%def>
