Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id D27FBE00DB0; Thu, 22 Sep 2016 09:56:38 -0700 (PDT) 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,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [209.85.220.46 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-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 45E36E00CC5 for ; Thu, 22 Sep 2016 09:56:18 -0700 (PDT) Received: by mail-pa0-f46.google.com with SMTP id hm5so31033071pac.0 for ; Thu, 22 Sep 2016 09:56:18 -0700 (PDT) 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=xgGDouSC42UYBshCA+m1aW6oiSGUPi91NUARiog7MMc=; b=EhOOORNA0Kky69S6drkEHRnKAtj65PVK8xaQB5/nkrCAW/fvyTMQMIP7DXxijUGKHT xI23hfOW/25s3a/sg3R2dJRMVR7zc/plQxm/fQb5A3CDrgDOzVQDCClf9txD80K/6++X 8uW1txQ8lO1wrcak5ZhtH5l51XKPDK+IZYBJVFRC9NvMIYYOssCFLbMiU+BBBlN1pfBN /AbmkdhPYb7rmz1IIBSpuxn33pl+hucrblkzonBz5XOwfytbMaJORLFhU2CwzGvTnXUh 1fcSg3AxW4Io7L2uN6mghz2fsm4HVTpUQj4RvxlhfxOA1yEPPYOGtoi/TgPnucidYjpC ZpKA== 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=xgGDouSC42UYBshCA+m1aW6oiSGUPi91NUARiog7MMc=; b=ExbqYP9UfjlXDvoHUpFEXC12MMmLpA7eaYT0lAT8IhNtu1tM9dQr4gorhxaARUsQTt wEgLIaszMkqWzoIkd2MHPhTr5QdWVLYUVBwj1IxyNIQOuc/JJAsjTtURWtKd7/vejsIc ztxjcYVZtjCiaV57c6gQZpQq4n2yTFeuu8B54EjvfDRQVZAGUC1ZmVNQ2+ovqCTrZluZ /IGYiNOSKwLkSxf7mp9dFq34bQrVpKZKJn+joERTe6oAPYqoICCgleY942teuW7i2PEX z3zk8vN1fAvS7i4vhCqbQpyBDMADWI3kArEdSgI+p4Q1DBPHozWhgcVg/99FWjZE4BCn J7iw== X-Gm-Message-State: AE9vXwOMTtQ0SyQAmhaTorp0bgrBbsTndByFVl4Nf3Yu7MVImif4WTNV/1VdHYlUJ7OExjCG X-Received: by 10.66.255.42 with SMTP id an10mr4883897pad.57.1474563378573; Thu, 22 Sep 2016 09:56:18 -0700 (PDT) Received: from orion.ger.corp.intel.com ([192.55.55.41]) by smtp.gmail.com with ESMTPSA id uj8sm5458889pab.5.2016.09.22.09.56.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 22 Sep 2016 09:56:17 -0700 (PDT) From: Michael Wood To: toaster@yoctoproject.org Date: Thu, 22 Sep 2016 17:55:51 +0100 Message-Id: <1474563354-11878-8-git-send-email-michael.g.wood@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1474563354-11878-1-git-send-email-michael.g.wood@intel.com> References: <1474563354-11878-1-git-send-email-michael.g.wood@intel.com> Subject: [PATCH 07/10] toaster: Add front end controls for deleting a build 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, 22 Sep 2016 16:56:38 -0000 Add front end modal and controls for deleting a build from the build dashboard. Also convert the Actions list to links instead of buttons as per the design. [YOCTO #6238] Signed-off-by: Michael Wood --- .../toastergui/templates/basebuildpage.html | 138 ++++++++++++++++----- .../toastergui/templates/builddashboard.html | 2 +- 2 files changed, 105 insertions(+), 35 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html index 01d3117..0b6ef56 100644 --- a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html +++ b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html @@ -3,8 +3,88 @@ {% load project_url_tag %} {% load objects_to_dictionaries_filter %} {% load humanize %} +{% load field_values_filter %} {% block pagecontent %} + + + + + +
@@ -22,36 +102,6 @@ {% block localbreadcrumb %}{% endblock %} -
@@ -86,13 +136,22 @@
  • CPU usage
  • Disk I/O
  • - - Download build log + +
  • + + + Download build log + +
  • {% with build.get_custom_image_recipes as custom_image_recipes %} {% if custom_image_recipes.count > 0 %} - +
  • + + + Edit custom image + {% include 'editcustomimage_modal.html' %} +
  • {% endif %} {% endwith %} {% if build.has_image_recipes %} - +
  • + + + New custom image + {% include 'newcustomimage_modal.html' %} {% endif %} + +
  • + + + Delete build + diff --git a/bitbake/lib/toaster/toastergui/templates/builddashboard.html b/bitbake/lib/toaster/toastergui/templates/builddashboard.html index 1c390cd..02a2981 100644 --- a/bitbake/lib/toaster/toastergui/templates/builddashboard.html +++ b/bitbake/lib/toaster/toastergui/templates/builddashboard.html @@ -34,7 +34,7 @@ {{build.warnings.count}} warning{{build.warnings.count|pluralize}} {% endif %} {% if build.cooker_log_path %} - Download build log + Download build log {% endif %} Build time: -- 2.7.4