Mercurial > kallithea
diff rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html @ 3389:1c4505e3be5b beta
show flags, and desc sort pull request based on created_date ref #765
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Wed, 20 Feb 2013 02:15:12 +0100 |
parents | eaa36a2497a9 |
children | fe2bb88bf7ac |
line wrap: on
line diff
--- a/rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html Wed Feb 20 01:59:50 2013 +0100 +++ b/rhodecode/templates/admin/users/user_edit_my_account_pullrequests.html Wed Feb 20 02:15:12 2013 +0100 @@ -6,6 +6,10 @@ <li> <div style="height: 12px"> <div style="float:left"> + %if pull_request.is_closed(): + <img src="${h.url('/images/icons/lock_go.png')}" title="${_('Closed')}"/> + %endif + <img src="${h.url('/images/icons/flag_status_%s.png' % str(pull_request.last_review_status))}" /> <a href="${h.url('pullrequest_show',repo_name=pull_request.other_repo.repo_name,pull_request_id=pull_request.pull_request_id)}"> ${_('Pull request #%s opened on %s') % (pull_request.pull_request_id, h.fmt_date(pull_request.created_on))} </a> @@ -29,6 +33,10 @@ %for pull_request in c.participate_in_pull_requests: <li> <div style="height: 12px"> + %if pull_request.is_closed(): + <img src="${h.url('/images/icons/lock_go.png')}" title="${_('Closed')}"/> + %endif + <img src="${h.url('/images/icons/flag_status_%s.png' % str(pull_request.last_review_status))}" /> <a href="${h.url('pullrequest_show',repo_name=pull_request.other_repo.repo_name,pull_request_id=pull_request.pull_request_id)}"> ${_('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))} </a>