# HG changeset patch # User Thomas De Schampheleire # Date 1425417979 -3600 # Node ID 7eea0a7fbc7dc35412353779f3b2be4f071c0eaf # Parent 0f9a48e0adc3a5ec29c7561d9ed3fbb1ec1b5e9e pullrequest overview: add delete button to own pull requests In anticipation of the re-use of the pullrequest overview to display 'my pullrequests', add a delete button to all pullrequests owned by the currently logged-in user. An explicit width is added to the column because the column is otherwise unnecessarily large. diff -r 0f9a48e0adc3 -r 7eea0a7fbc7d kallithea/templates/pullrequests/pullrequest_data.html --- a/kallithea/templates/pullrequests/pullrequest_data.html Tue Mar 03 21:44:27 2015 +0100 +++ b/kallithea/templates/pullrequests/pullrequest_data.html Tue Mar 03 22:26:19 2015 +0100 @@ -21,12 +21,26 @@ % for pr in pullrequests: - + + ## review status %if pr.last_review_status: %else: %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")} + + ${h.end_form()} + %endif