Mercurial > kallithea
annotate 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 |
rev | line source |
---|---|
2624
19daa8d761dc
Improvements to my account page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
1 |
19daa8d761dc
Improvements to my account page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
2 <div class="pullrequests_section_head">${_('Opened by me')}</div> |
19daa8d761dc
Improvements to my account page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
3 <ul> |
2722
ef7520340c44
fixed missing div on my_account + added nothing here yet when there are no
Marcin Kuzminski <marcin@python-works.com>
parents:
2667
diff
changeset
|
4 %if c.my_pull_requests: |
ef7520340c44
fixed missing div on my_account + added nothing here yet when there are no
Marcin Kuzminski <marcin@python-works.com>
parents:
2667
diff
changeset
|
5 %for pull_request in c.my_pull_requests: |
ef7520340c44
fixed missing div on my_account + added nothing here yet when there are no
Marcin Kuzminski <marcin@python-works.com>
parents:
2667
diff
changeset
|
6 <li> |
2746
49a4864b11c1
Authors of pull-requests can now delete them
Marcin Kuzminski <marcin@python-works.com>
parents:
2722
diff
changeset
|
7 <div style="float:left"> |
2722
ef7520340c44
fixed missing div on my_account + added nothing here yet when there are no
Marcin Kuzminski <marcin@python-works.com>
parents:
2667
diff
changeset
|
8 <a href="${h.url('pullrequest_show',repo_name=pull_request.other_repo.repo_name,pull_request_id=pull_request.pull_request_id)}"> |
ef7520340c44
fixed missing div on my_account + added nothing here yet when there are no
Marcin Kuzminski <marcin@python-works.com>
parents:
2667
diff
changeset
|
9 ${_('Pull request #%s opened on %s') % (pull_request.pull_request_id, h.fmt_date(pull_request.created_on))} |
ef7520340c44
fixed missing div on my_account + added nothing here yet when there are no
Marcin Kuzminski <marcin@python-works.com>
parents:
2667
diff
changeset
|
10 </a> |
2746
49a4864b11c1
Authors of pull-requests can now delete them
Marcin Kuzminski <marcin@python-works.com>
parents:
2722
diff
changeset
|
11 </div> |
49a4864b11c1
Authors of pull-requests can now delete them
Marcin Kuzminski <marcin@python-works.com>
parents:
2722
diff
changeset
|
12 <div style="float:left;margin-top: -5px"> |
49a4864b11c1
Authors of pull-requests can now delete them
Marcin Kuzminski <marcin@python-works.com>
parents:
2722
diff
changeset
|
13 ${h.form(url('pullrequest_delete', repo_name=pull_request.other_repo.repo_name, pull_request_id=pull_request.pull_request_id),method='delete')} |
49a4864b11c1
Authors of pull-requests can now delete them
Marcin Kuzminski <marcin@python-works.com>
parents:
2722
diff
changeset
|
14 ${h.submit('remove_%s' % pull_request.pull_request_id,'',class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this pull request')+"');")} |
49a4864b11c1
Authors of pull-requests can now delete them
Marcin Kuzminski <marcin@python-works.com>
parents:
2722
diff
changeset
|
15 ${h.end_form()} |
49a4864b11c1
Authors of pull-requests can now delete them
Marcin Kuzminski <marcin@python-works.com>
parents:
2722
diff
changeset
|
16 </div> |
2722
ef7520340c44
fixed missing div on my_account + added nothing here yet when there are no
Marcin Kuzminski <marcin@python-works.com>
parents:
2667
diff
changeset
|
17 </li> |
ef7520340c44
fixed missing div on my_account + added nothing here yet when there are no
Marcin Kuzminski <marcin@python-works.com>
parents:
2667
diff
changeset
|
18 %endfor |
ef7520340c44
fixed missing div on my_account + added nothing here yet when there are no
Marcin Kuzminski <marcin@python-works.com>
parents:
2667
diff
changeset
|
19 %else: |
ef7520340c44
fixed missing div on my_account + added nothing here yet when there are no
Marcin Kuzminski <marcin@python-works.com>
parents:
2667
diff
changeset
|
20 <li><span class="empty_data">${_('Nothing here yet')}</span></li> |
ef7520340c44
fixed missing div on my_account + added nothing here yet when there are no
Marcin Kuzminski <marcin@python-works.com>
parents:
2667
diff
changeset
|
21 %endif |
2624
19daa8d761dc
Improvements to my account page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
22 </ul> |
19daa8d761dc
Improvements to my account page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
23 |
2746
49a4864b11c1
Authors of pull-requests can now delete them
Marcin Kuzminski <marcin@python-works.com>
parents:
2722
diff
changeset
|
24 <div class="pullrequests_section_head" style="clear:both">${_('I participate in')}</div> |
2624
19daa8d761dc
Improvements to my account page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
25 <ul> |
2722
ef7520340c44
fixed missing div on my_account + added nothing here yet when there are no
Marcin Kuzminski <marcin@python-works.com>
parents:
2667
diff
changeset
|
26 %if c.my_pull_requests: |
ef7520340c44
fixed missing div on my_account + added nothing here yet when there are no
Marcin Kuzminski <marcin@python-works.com>
parents:
2667
diff
changeset
|
27 %for pull_request in c.participate_in_pull_requests: |
ef7520340c44
fixed missing div on my_account + added nothing here yet when there are no
Marcin Kuzminski <marcin@python-works.com>
parents:
2667
diff
changeset
|
28 <li> |
ef7520340c44
fixed missing div on my_account + added nothing here yet when there are no
Marcin Kuzminski <marcin@python-works.com>
parents:
2667
diff
changeset
|
29 <a href="${h.url('pullrequest_show',repo_name=pull_request.other_repo.repo_name,pull_request_id=pull_request.pull_request_id)}"> |
ef7520340c44
fixed missing div on my_account + added nothing here yet when there are no
Marcin Kuzminski <marcin@python-works.com>
parents:
2667
diff
changeset
|
30 ${_('Pull request #%s opened by %s on %s') % (pull_request.pull_request_id, pull_request.author.full_name, h.fmt_date(pull_request.created_on))} |
ef7520340c44
fixed missing div on my_account + added nothing here yet when there are no
Marcin Kuzminski <marcin@python-works.com>
parents:
2667
diff
changeset
|
31 </a> |
ef7520340c44
fixed missing div on my_account + added nothing here yet when there are no
Marcin Kuzminski <marcin@python-works.com>
parents:
2667
diff
changeset
|
32 </li> |
ef7520340c44
fixed missing div on my_account + added nothing here yet when there are no
Marcin Kuzminski <marcin@python-works.com>
parents:
2667
diff
changeset
|
33 %endfor |
ef7520340c44
fixed missing div on my_account + added nothing here yet when there are no
Marcin Kuzminski <marcin@python-works.com>
parents:
2667
diff
changeset
|
34 %else: |
ef7520340c44
fixed missing div on my_account + added nothing here yet when there are no
Marcin Kuzminski <marcin@python-works.com>
parents:
2667
diff
changeset
|
35 <li><span class="empty_data">${_('Nothing here yet')}</span></li> |
ef7520340c44
fixed missing div on my_account + added nothing here yet when there are no
Marcin Kuzminski <marcin@python-works.com>
parents:
2667
diff
changeset
|
36 %endif |
2624
19daa8d761dc
Improvements to my account page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
37 </ul> |