<%namespace name="base" file="/base/base.html"/>
%if c.show_closed: ${h.checkbox('show_closed',checked="checked", label=_('Show Closed Pull Requests'))} %else: ${h.checkbox('show_closed',label=_('Show Closed Pull Requests'))} %endif

${_('Pull Requests You Opened')}: ${len(c.my_pull_requests)}

%if c.my_pull_requests: %for pull_request in c.my_pull_requests: %endfor
${_('Target Repo')} ${_('Author')} ${_('Title')} ${_('Last Update')}
${h.link_to(pull_request.target_repo.repo_name,h.url('summary_home',repo_name=pull_request.target_repo.repo_name))}
${base.gravatar_with_user(pull_request.author.email, 16)}
 
#${pull_request.pull_request_id}: ${pull_request.title}\ %if pull_request.is_closed():  (${_('Closed')})\ %endif
${pull_request.description}
${h.age_component(pull_request.updated_on)} ${h.secure_form(url('pullrequest_delete', repo_name=pull_request.target_repo.repo_name, pull_request_id=pull_request.pull_request_id),method='delete')} ${h.submit('remove_%s' % pull_request.pull_request_id, _('Delete'), class_="btn btn-link btn-danger",onclick="return confirm('"+_('Confirm to delete this pull request')+"');")} ${h.end_form()}
%else:

${_('You currently have no open pull requests.')}

%endif

${_('Pull Requests You Participate In')}: ${len(c.participate_in_pull_requests)}

%if c.participate_in_pull_requests: %for pull_request in c.participate_in_pull_requests: %endfor
${_('Target Repo')} ${_('Author')} ${_('Title')} ${_('Last Update')}
${h.link_to(pull_request.target_repo.repo_name,h.url('summary_home',repo_name=pull_request.target_repo.repo_name))}
${base.gravatar_with_user(pull_request.author.email, 16)}
 
#${pull_request.pull_request_id}: ${pull_request.title}\ %if pull_request.is_closed():  (${_('Closed')})\ %endif
${pull_request.description}
${h.age_component(pull_request.updated_on)}
%else:

${_('There are currently no open pull requests requiring your participation.')}

%endif