From 296d3733df0b4da8ac8e793a552da2ecdfa32f20 Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Wed, 6 Apr 2016 17:46:38 +0100 Subject: bitbake: toaster: mrb_section template Add build cancel button Add the cancel build button to the mrb section template and add the event handlers to cancelABuild. Also clean up the calls to startABuild to use the updated libtoaster methods and to make the code consistent with it's cancelABuild counterpart. Co-Author: Sujith H (Bitbake rev: 6b82ffca1aa9ca2d0feec64b15466bc8ba160011) Signed-off-by: Michael Wood Signed-off-by: Richard Purdie --- .../toaster/toastergui/templates/mrb_section.html | 148 ++++++++------------- 1 file changed, 54 insertions(+), 94 deletions(-) (limited to 'bitbake/lib/toaster/toastergui/templates/mrb_section.html') diff --git a/bitbake/lib/toaster/toastergui/templates/mrb_section.html b/bitbake/lib/toaster/toastergui/templates/mrb_section.html index 551e341a5d..b5e798d7cc 100644 --- a/bitbake/lib/toaster/toastergui/templates/mrb_section.html +++ b/bitbake/lib/toaster/toastergui/templates/mrb_section.html @@ -2,6 +2,21 @@ {% load projecttags %} {% load project_url_tag %} {% load humanize %} + + {%if mru and mru.count > 0%} @@ -99,7 +114,7 @@ " title="Builds in this project cannot be started from Toaster: they are started from the command line"> {% else %} - @@ -119,100 +133,46 @@ {%endif%} {%if build.outcome == build.IN_PROGRESS %} -
-
-
-
-
-
{{build.completeper}}% of tasks complete
- {%endif%} - + +
+
+
+
+
+
{{build.completeper}}% of tasks complete
+ {# No build cancel for command line builds project #} + {% if build.project.is_default %} + + {% else %} +
+ +
+ {% endif %} - {% endfor %} - - - + {% endfor %} + {%endif%} -- cgit v1.2.3-54-g00ecf