Mercurial > kallithea
annotate rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html @ 3404:7854097b189c beta
Hide closed pull requests on my page.
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Mon, 25 Feb 2013 23:17:33 +0100 |
parents | fe2bb88bf7ac |
children | 8a8a559eaf95 |
rev | line source |
---|---|
3404
7854097b189c
Hide closed pull requests on my page.
Marcin Kuzminski <marcin@python-works.com>
parents:
3394
diff
changeset
|
1 %if c.show_closed: |
7854097b189c
Hide closed pull requests on my page.
Marcin Kuzminski <marcin@python-works.com>
parents:
3394
diff
changeset
|
2 ${h.checkbox('show_closed',checked="checked", label=_('Show closed pull requests'))} |
7854097b189c
Hide closed pull requests on my page.
Marcin Kuzminski <marcin@python-works.com>
parents:
3394
diff
changeset
|
3 %else: |
7854097b189c
Hide closed pull requests on my page.
Marcin Kuzminski <marcin@python-works.com>
parents:
3394
diff
changeset
|
4 ${h.checkbox('show_closed',label=_('Show closed pull requests'))} |
7854097b189c
Hide closed pull requests on my page.
Marcin Kuzminski <marcin@python-works.com>
parents:
3394
diff
changeset
|
5 %endif |
2624
19daa8d761dc
Improvements to my account page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
6 <div class="pullrequests_section_head">${_('Opened by me')}</div> |
19daa8d761dc
Improvements to my account page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
7 <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
|
8 %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
|
9 %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
|
10 <li> |
2770
74364824c1e1
Hide add/delete pull request members when you don't have permission for it
Marcin Kuzminski <marcin@python-works.com>
parents:
2746
diff
changeset
|
11 <div style="height: 12px"> |
74364824c1e1
Hide add/delete pull request members when you don't have permission for it
Marcin Kuzminski <marcin@python-works.com>
parents:
2746
diff
changeset
|
12 <div style="float:left"> |
3389
1c4505e3be5b
show flags, and desc sort pull request based on created_date ref #765
Marcin Kuzminski <marcin@python-works.com>
parents:
3017
diff
changeset
|
13 %if pull_request.is_closed(): |
1c4505e3be5b
show flags, and desc sort pull request based on created_date ref #765
Marcin Kuzminski <marcin@python-works.com>
parents:
3017
diff
changeset
|
14 <img src="${h.url('/images/icons/lock_go.png')}" title="${_('Closed')}"/> |
1c4505e3be5b
show flags, and desc sort pull request based on created_date ref #765
Marcin Kuzminski <marcin@python-works.com>
parents:
3017
diff
changeset
|
15 %endif |
3394
fe2bb88bf7ac
whitespace cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
3389
diff
changeset
|
16 <img src="${h.url('/images/icons/flag_status_%s.png' % str(pull_request.last_review_status))}" /> |
2770
74364824c1e1
Hide add/delete pull request members when you don't have permission for it
Marcin Kuzminski <marcin@python-works.com>
parents:
2746
diff
changeset
|
17 <a href="${h.url('pullrequest_show',repo_name=pull_request.other_repo.repo_name,pull_request_id=pull_request.pull_request_id)}"> |
74364824c1e1
Hide add/delete pull request members when you don't have permission for it
Marcin Kuzminski <marcin@python-works.com>
parents:
2746
diff
changeset
|
18 ${_('Pull request #%s opened on %s') % (pull_request.pull_request_id, h.fmt_date(pull_request.created_on))} |
74364824c1e1
Hide add/delete pull request members when you don't have permission for it
Marcin Kuzminski <marcin@python-works.com>
parents:
2746
diff
changeset
|
19 </a> |
74364824c1e1
Hide add/delete pull request members when you don't have permission for it
Marcin Kuzminski <marcin@python-works.com>
parents:
2746
diff
changeset
|
20 </div> |
74364824c1e1
Hide add/delete pull request members when you don't have permission for it
Marcin Kuzminski <marcin@python-works.com>
parents:
2746
diff
changeset
|
21 <div style="float:left;margin-top: -5px"> |
74364824c1e1
Hide add/delete pull request members when you don't have permission for it
Marcin Kuzminski <marcin@python-works.com>
parents:
2746
diff
changeset
|
22 ${h.form(url('pullrequest_delete', repo_name=pull_request.other_repo.repo_name, pull_request_id=pull_request.pull_request_id),method='delete')} |
74364824c1e1
Hide add/delete pull request members when you don't have permission for it
Marcin Kuzminski <marcin@python-works.com>
parents:
2746
diff
changeset
|
23 ${h.submit('remove_%s' % pull_request.pull_request_id,'',class_="delete_icon action_button",onclick="return confirm('"+_('Confirm to delete this pull request')+"');")} |
74364824c1e1
Hide add/delete pull request members when you don't have permission for it
Marcin Kuzminski <marcin@python-works.com>
parents:
2746
diff
changeset
|
24 ${h.end_form()} |
74364824c1e1
Hide add/delete pull request members when you don't have permission for it
Marcin Kuzminski <marcin@python-works.com>
parents:
2746
diff
changeset
|
25 </div> |
74364824c1e1
Hide add/delete pull request members when you don't have permission for it
Marcin Kuzminski <marcin@python-works.com>
parents:
2746
diff
changeset
|
26 </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
|
27 </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
|
28 %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
|
29 %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
|
30 <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
|
31 %endif |
2624
19daa8d761dc
Improvements to my account page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
32 </ul> |
19daa8d761dc
Improvements to my account page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
33 |
2746
49a4864b11c1
Authors of pull-requests can now delete them
Marcin Kuzminski <marcin@python-works.com>
parents:
2722
diff
changeset
|
34 <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
|
35 <ul> |
3017
eaa36a2497a9
fixes #651 Pull request I participate - empty for some cases
Marcin Kuzminski <marcin@python-works.com>
parents:
2770
diff
changeset
|
36 %if c.participate_in_pull_requests: |
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
|
37 %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
|
38 <li> |
2770
74364824c1e1
Hide add/delete pull request members when you don't have permission for it
Marcin Kuzminski <marcin@python-works.com>
parents:
2746
diff
changeset
|
39 <div style="height: 12px"> |
3389
1c4505e3be5b
show flags, and desc sort pull request based on created_date ref #765
Marcin Kuzminski <marcin@python-works.com>
parents:
3017
diff
changeset
|
40 %if pull_request.is_closed(): |
1c4505e3be5b
show flags, and desc sort pull request based on created_date ref #765
Marcin Kuzminski <marcin@python-works.com>
parents:
3017
diff
changeset
|
41 <img src="${h.url('/images/icons/lock_go.png')}" title="${_('Closed')}"/> |
1c4505e3be5b
show flags, and desc sort pull request based on created_date ref #765
Marcin Kuzminski <marcin@python-works.com>
parents:
3017
diff
changeset
|
42 %endif |
3394
fe2bb88bf7ac
whitespace cleanup
Marcin Kuzminski <marcin@python-works.com>
parents:
3389
diff
changeset
|
43 <img src="${h.url('/images/icons/flag_status_%s.png' % str(pull_request.last_review_status))}" /> |
2770
74364824c1e1
Hide add/delete pull request members when you don't have permission for it
Marcin Kuzminski <marcin@python-works.com>
parents:
2746
diff
changeset
|
44 <a href="${h.url('pullrequest_show',repo_name=pull_request.other_repo.repo_name,pull_request_id=pull_request.pull_request_id)}"> |
74364824c1e1
Hide add/delete pull request members when you don't have permission for it
Marcin Kuzminski <marcin@python-works.com>
parents:
2746
diff
changeset
|
45 ${_('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))} |
74364824c1e1
Hide add/delete pull request members when you don't have permission for it
Marcin Kuzminski <marcin@python-works.com>
parents:
2746
diff
changeset
|
46 </a> |
74364824c1e1
Hide add/delete pull request members when you don't have permission for it
Marcin Kuzminski <marcin@python-works.com>
parents:
2746
diff
changeset
|
47 </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
|
48 </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
|
49 %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
|
50 %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
|
51 <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
|
52 %endif |
2624
19daa8d761dc
Improvements to my account page
Marcin Kuzminski <marcin@python-works.com>
parents:
diff
changeset
|
53 </ul> |