From: Elliot Smith Date: Thu, 12 May 2016 14:10:38 +0000 (+0100) Subject: toaster: don't show "Rebuild" button for cancelled cli builds X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71a45c600e47af5a19412bc3c5a9ba242bfb4638;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git toaster: don't show "Rebuild" button for cancelled cli builds [YOCTO #8515] Signed-off-by: Elliot Smith Signed-off-by: Michael Wood Signed-off-by: Richard Purdie --- diff --git a/lib/toaster/toastergui/templates/mrb_section.html b/lib/toaster/toastergui/templates/mrb_section.html index b5e798d7ccc..212998a6b2f 100644 --- a/lib/toaster/toastergui/templates/mrb_section.html +++ b/lib/toaster/toastergui/templates/mrb_section.html @@ -125,8 +125,6 @@ pull-right" data-request-url="{% url 'xhr_buildrequest' build.project.pk %}" data-target='{{build.target_set.all|get_tasks|json}}'> - - Rebuild {% endif %} @@ -144,7 +142,7 @@
{{build.completeper}}% of tasks complete
{# No build cancel for command line builds project #} {% if build.project.is_default %} - + {% else %}
- + {% if build.project.is_default %} + + {% else %} + + {% endif %} {% endif %}