comparison rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html @ 2746:49a4864b11c1 beta

Authors of pull-requests can now delete them
author Marcin Kuzminski <marcin@python-works.com>
date Sun, 26 Aug 2012 01:04:43 +0200
parents ef7520340c44
children 74364824c1e1
comparison
equal deleted inserted replaced
2745:fe47ff8ef3f7 2746:49a4864b11c1
2 <div class="pullrequests_section_head">${_('Opened by me')}</div> 2 <div class="pullrequests_section_head">${_('Opened by me')}</div>
3 <ul> 3 <ul>
4 %if c.my_pull_requests: 4 %if c.my_pull_requests:
5 %for pull_request in c.my_pull_requests: 5 %for pull_request in c.my_pull_requests:
6 <li> 6 <li>
7 <div style="float:left">
7 <a href="${h.url('pullrequest_show',repo_name=pull_request.other_repo.repo_name,pull_request_id=pull_request.pull_request_id)}"> 8 <a href="${h.url('pullrequest_show',repo_name=pull_request.other_repo.repo_name,pull_request_id=pull_request.pull_request_id)}">
8 ${_('Pull request #%s opened on %s') % (pull_request.pull_request_id, h.fmt_date(pull_request.created_on))} 9 ${_('Pull request #%s opened on %s') % (pull_request.pull_request_id, h.fmt_date(pull_request.created_on))}
9 </a> 10 </a>
11 </div>
12 <div style="float:left;margin-top: -5px">
13 ${h.form(url('pullrequest_delete', repo_name=pull_request.other_repo.repo_name, pull_request_id=pull_request.pull_request_id),method='delete')}
14 ${h.submit('remove_%s' % pull_request.pull_request_id,'',class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this pull request')+"');")}
15 ${h.end_form()}
16 </div>
10 </li> 17 </li>
11 %endfor 18 %endfor
12 %else: 19 %else:
13 <li><span class="empty_data">${_('Nothing here yet')}</span></li> 20 <li><span class="empty_data">${_('Nothing here yet')}</span></li>
14 %endif 21 %endif
15 </ul> 22 </ul>
16 23
17 <div class="pullrequests_section_head">${_('I participate in')}</div> 24 <div class="pullrequests_section_head" style="clear:both">${_('I participate in')}</div>
18 <ul> 25 <ul>
19 %if c.my_pull_requests: 26 %if c.my_pull_requests:
20 %for pull_request in c.participate_in_pull_requests: 27 %for pull_request in c.participate_in_pull_requests:
21 <li> 28 <li>
22 <a href="${h.url('pullrequest_show',repo_name=pull_request.other_repo.repo_name,pull_request_id=pull_request.pull_request_id)}"> 29 <a href="${h.url('pullrequest_show',repo_name=pull_request.other_repo.repo_name,pull_request_id=pull_request.pull_request_id)}">