Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 41C4BE00C8E; Mon, 22 Feb 2016 03:31:54 -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=-2.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.220.44 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 46F07E00C29 for ; Mon, 22 Feb 2016 03:31:34 -0800 (PST) Received: by mail-pa0-f44.google.com with SMTP id ho8so92377582pac.2 for ; Mon, 22 Feb 2016 03:31:34 -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=jSM5Yhy+fiPvlNZbTQWf2MDVaEvwSwI4m5i7whvy29M=; b=UgYf/1V3BOJxF7KXczEJZkjZAq+zJ/k8srZm+NsSQ2Hk0DA0x+HiVyaEo7ae3Jitp8 Rs6tr+/W9nYJTyQ9+5CdFRxw7177rs3HLQ4qX4pgQxNrWKte7drbKG+ZbnjTSlkuj/83 NPyCnEPx5om3PsbLaEEcixtk2Xgy+Axt9m/fN/dilR1GUwOmLoKCM4OiqL5LTHk4vU6M kcY4ljsq6d2/6wRROaR/y/TUAbePle3aDcE16AIUMWAfx8ZhjC+txSz41UwzEGyU+u6A X14uBP/i2QNRcOBMtVLqxJl0mG3XTYHOj/q/hUVSsrEXe3xyseKDJpQH/akhnp4v1qDr 3xWA== 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=jSM5Yhy+fiPvlNZbTQWf2MDVaEvwSwI4m5i7whvy29M=; b=Bgq+KP8MHi1wAxVePubzAUbahhnjfH3PcYXf5O5yry5pR35403nqW+hUeDqtBK+5AP kOi1dQtwiU87YYRW0b4LGMgwjuGjQAJmPmdBRD3CDf7biPMfrO5dEF5wbtL+5Gt/qu5A FVFQOf/4tFaBlIP05MbMOrP3cw2kOYyQ6BQyUrnfBJ3q1oI5pWKn+YKaGmMV4HSNgvzu +Pz3u/gQCZzsz4Ow8IJl00hJwsebpJzwC7LJbH7RcN5Sg2VEflz2vr/s3enLuGMGeuIU XiOBHkidMZHjv6r+NJ6AKLcgdqq+jnmX+/hdV9bTNJbRgQu1J7KXbUG25zp+n4t5V6Gu kuwQ== X-Gm-Message-State: AG10YOSNhOd55sn988oU0UTPSK3UBEdACGmcMZBTNSjFMZKhW/+/Of02DuitCBg9/pEuw4+W X-Received: by 10.66.121.97 with SMTP id lj1mr15493673pab.51.1456140694583; Mon, 22 Feb 2016 03:31:34 -0800 (PST) Received: from dorado.ger.corp.intel.com (fmdmzpr01-ext.fm.intel.com. [192.55.54.36]) by smtp.gmail.com with ESMTPSA id n78sm36216801pfb.53.2016.02.22.03.31.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 22 Feb 2016 03:31:34 -0800 (PST) From: Michael Wood To: toaster@yoctoproject.org Date: Mon, 22 Feb 2016 11:31:06 +0000 Message-Id: <1456140666-5344-11-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1456140666-5344-1-git-send-email-michael.g.wood@intel.com> References: <1456140666-5344-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH 10/10] 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: Mon, 22 Feb 2016 11:31:54 -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 cceee7d..b440023 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 %}