From 72804abea00d5f45f50a134d2696dec186e9282e Mon Sep 17 00:00:00 2001 From: Chris Polcyn Date: Fri, 11 Aug 2017 13:59:52 -0700 Subject: [PATCH] Show Rebuild button only when build status is error or fail --- mrbelvedereci/build/templates/build/detail_layout.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mrbelvedereci/build/templates/build/detail_layout.html b/mrbelvedereci/build/templates/build/detail_layout.html index 4072e2b02..8c49d06ae 100644 --- a/mrbelvedereci/build/templates/build/detail_layout.html +++ b/mrbelvedereci/build/templates/build/detail_layout.html @@ -13,7 +13,8 @@ {% endblock %} {% block layout_header_buttons %} -{% if request.user.is_staff and build.get_status != 'success' %} +{% if request.user.is_staff %} +{% if build.get_status == 'error' or build.get_status == 'fail' %}
{% endif %} +{% endif %} {% endblock %} {% block layout_header_details %}