Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 222E3E00D34; Thu, 25 Feb 2016 10:21:42 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 02D51E00D12 for ; Thu, 25 Feb 2016 10:21:38 -0800 (PST) Received: by mail-wm0-f49.google.com with SMTP id g62so41459852wme.1 for ; Thu, 25 Feb 2016 10:21:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6L81jTXl4APiTt8wdsfAgPCgOd/gJ9Vd9sWLUmLK8Ik=; b=quaztDvTz4cMKeALd7JiEDqrIy9PgtA3xBNtFHeKizzxgHMINyKZ4XfuOdroS/xZkF DTE0AdwD28Lj2lajsgRD8HzSfUYtThKcSkWLyg2YLm04OWfCDR8VdJX3EbfUXngtir7k MU/x731szPa9EeujyWtM+cTsZ1XGguB/kGGSTsAb6wt6PD2N+igpgzl/yp4LvTc0lpAz NlGlHCOA5dwoT49SSacEhPLfcRUIl4A4TEdLdLvfxGvBBNLpK+QZ2XCe31PC9FzNBpL9 /X/XmYrbVENjiNSWMPu4RBGqiuUV9eS3GPs5XSU5mDwi9KuMX/mZOn9CBHOHamkgN29C nZ1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=6L81jTXl4APiTt8wdsfAgPCgOd/gJ9Vd9sWLUmLK8Ik=; b=IPUov0U6ddnYnbqxsWJ1f4alnKmvgynnntcpwxTXUF9rImcQ/LoQHQa4vsziYSZV/n UkfnQCju9Nf5zu3UeDYnKG5yVeL2OIGFH2SQpZgEQxzyt3F/Z4TaJy415yNAR9zQXThb iug4fHfDt8el18z+rKkGcjMFWIDog76ARlkPnRQN7PnbTkiCqRb7jQXevgbGd7sOYbnk aTonzjG/4MChydDbDh6jy79xu0YHZfKmv7Luju0OrcwbdiF4TFW/abikWlJiToWk4eI/ Yp5d51NRv9OsR0uPKqfLMq5Y1eRIm9lxVidyScn/x1UWUAuqvtk5q7nY0rqJI3x/7hYW b8eg== X-Gm-Message-State: AG10YORiTpLb8ColJeWy8vXqQF9n8oStbey0C67+gpC4OzwVtY9UzV1vBbXg3OGex19Jde4M X-Received: by 10.194.90.172 with SMTP id bx12mr46437869wjb.128.1456424498231; Thu, 25 Feb 2016 10:21:38 -0800 (PST) Received: from draco.icx.intel.com ([83.217.123.106]) by smtp.gmail.com with ESMTPSA id az8sm3084010wjc.17.2016.02.25.10.21.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 25 Feb 2016 10:21:37 -0800 (PST) From: Michael Wood To: toaster@yoctoproject.org Date: Thu, 25 Feb 2016 18:21:24 +0000 Message-Id: <1456424485-6566-11-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1456424485-6566-1-git-send-email-michael.g.wood@intel.com> References: <1456424485-6566-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH 10/11] toaster: mrb_section template Add build cancel button X-BeenThere: toaster@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Web based interface for BitBake List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2016 18:21:42 -0000 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 Signed-off-by: Michael Wood --- .../toaster/toastergui/templates/mrb_section.html | 102 ++++++++++++++------- 1 file changed, 71 insertions(+), 31 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/templates/mrb_section.html b/bitbake/lib/toaster/toastergui/templates/mrb_section.html index 551e341..647f49b 100644 --- a/bitbake/lib/toaster/toastergui/templates/mrb_section.html +++ b/bitbake/lib/toaster/toastergui/templates/mrb_section.html @@ -99,7 +99,7 @@ " title="Builds in this project cannot be started from Toaster: they are started from the command line"> {% else %} - @@ -119,46 +118,87 @@ {%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 %} + + {%endif%} {# end if in progress #} + + {% if build.outcome == build.CANCELLED %} +
+

Build cancelled

+
+ + {% endif %} + + {% endfor %}