Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
commit 55fc0deb0bc3dc2ac9548a8f7d81068c99cf3a9d Author: Adam Samalik asamalik@redhat.com Date: Thu May 22 16:02:17 2014 +0200
builders can delete their builds
.../coprs/templates/coprs/detail/build.html | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-)
diff --git a/frontend/coprs_frontend/coprs/templates/coprs/detail/build.html b/frontend/coprs_frontend/coprs/templates/coprs/detail/build.html index 9f75dfe..a8377cd 100644 --- a/frontend/coprs_frontend/coprs/templates/coprs/detail/build.html +++ b/frontend/coprs_frontend/coprs/templates/coprs/detail/build.html @@ -12,15 +12,13 @@ {% else %} <h2 class="build-detail"> Build {{ build.id }} in {{ build.copr.owner.name }}/{{ build.copr.name }}</h2> <div class="build-buttons" > - {% if g.user and g.user.can_build_in(copr) %} + {% if g.user and g.user.can_build_in(copr) %} {{ copr_build_cancel_form(build, page) }} - {% endif %} - {% if g.user and g.user.can_build_in(copr) %} {{ copr_build_repeat_form(build, page) }} - {% endif %} - {% if g.user and g.user.can_edit(copr) %} - {{ copr_build_delete_form(build, page) }} - {% endif %} + {% if g.user.can_edit(copr) or build.user == g.user %} + {{ copr_build_delete_form(build, page) }} + {% endif %} + {% endif %} </div>
<dl>
copr-commits@lists.fedorahosted.org