Mercurial > kallithea
changeset 5312:910c0a039f2a
pullrequests: on 'My Pull Requests' move delete all the way to the right
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Fri, 24 Jul 2015 16:37:40 +0200 |
parents | 1528ae42ec04 |
children | 3fa7b86b483e |
files | kallithea/templates/pullrequests/pullrequest_data.html |
diffstat | 1 files changed, 14 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/templates/pullrequests/pullrequest_data.html Fri Jul 24 16:37:40 2015 +0200 +++ b/kallithea/templates/pullrequests/pullrequest_data.html Fri Jul 24 16:37:40 2015 +0200 @@ -17,6 +17,7 @@ <th class="left">${_('Age')}</th> <th class="left">${_('From')}</th> <th class="left">${_('To')}</th> + <th class="right" style="padding-right:5px">${_('Delete')}</th> </tr> </thead> % for pr in pullrequests: @@ -28,19 +29,6 @@ %else: <i class="icon-circle changeset-status-not_reviewed" title="${_("You didn't vote")}"></i> %endif - - ## delete button - %if pr.author.user_id == c.authuser.user_id: - ${h.form(url('pullrequest_delete', repo_name=pr.other_repo.repo_name, pull_request_id=pr.pull_request_id),method='delete', style="display:inline-block")} - <button class="action_button" - id="remove_${pr.pull_request_id}" - name="remove_${pr.pull_request_id}" - title="${_('Delete Pull Request')}" - onclick="return confirm('${_('Confirm to delete this pull request')}');"> - <i class="icon-minus-circled"></i> - </button> - ${h.end_form()} - %endif </td> <td> <a href="${pr.url()}"> @@ -70,6 +58,19 @@ ${pr.other_repo.repo_name}#${other_ref_name} </a> </td> + <td style="text-align:right"> + %if pr.author.user_id == c.authuser.user_id: + ${h.form(url('pullrequest_delete', repo_name=pr.other_repo.repo_name, pull_request_id=pr.pull_request_id),method='delete', style="display:inline-block")} + <button class="action_button" + id="remove_${pr.pull_request_id}" + name="remove_${pr.pull_request_id}" + title="${_('Delete Pull Request')}" + onclick="return confirm('${_('Confirm to delete this pull request')}');"> + <i class="icon-minus-circled"></i> + </button> + ${h.end_form()} + %endif + </td> </tr> % endfor </table>