Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 2F0D8E00D97; Mon, 8 Feb 2016 07:05:59 -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=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -5.0 RCVD_IN_DNSWL_HI RBL: Sender listed at http://www.dnswl.org/, high * trust * [134.134.136.24 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id CAA5BE00D94 for ; Mon, 8 Feb 2016 07:05:55 -0800 (PST) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP; 08 Feb 2016 07:05:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,416,1449561600"; d="scan'208";a="879543293" Received: from tabels-mobl22.amr.corp.intel.com (HELO bbarrosp-mac03.local.com) ([10.252.15.92]) by orsmga001.jf.intel.com with ESMTP; 08 Feb 2016 07:05:54 -0800 From: Belen Barros Pena To: toaster@yoctoproject.org Date: Mon, 8 Feb 2016 16:05:46 +0100 Message-Id: <1454943946-62659-1-git-send-email-belen.barros.pena@linux.intel.com> X-Mailer: git-send-email 2.5.4 (Apple Git-61) Subject: [PATCH] toaster: improve display of builds with more than one target 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, 08 Feb 2016 15:05:59 -0000 From: Belen Barros Pena * Display always the first target in alphabetical order to match what we do in the breadcrumbs and the build dashboard heading * Remove the extra space between the '+' and the additional number of targets * Make sure the tooltip with the full target list takes the Bootstrap tooltip styles * Replace the word 'targets' in the tooltip with 'recipes', since that's how we call build targets everywhere else in Toaster Signed-off-by: Belen Barros Pena --- bitbake/lib/toaster/toastergui/static/js/libtoaster.js | 4 ++-- bitbake/lib/toaster/toastergui/templates/mrb_section.html | 13 +++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js index 1012034..e2dba48 100644 --- a/bitbake/lib/toaster/toastergui/static/js/libtoaster.js +++ b/bitbake/lib/toaster/toastergui/static/js/libtoaster.js @@ -443,8 +443,8 @@ $(document).ready(function() { $('.tooltip').hide(); }); - // enable help information tooltip - $(".get-help").tooltip({container:'body', html:true, delay:{show:300}}); + // enable help information and multi target build tooltips + $(".get-help, .multitarget-build").tooltip({container:'body', html:true, delay:{show:300}}); // show help bubble only on hover inside tables $(".hover-help").css("visibility","hidden"); diff --git a/bitbake/lib/toaster/toastergui/templates/mrb_section.html b/bitbake/lib/toaster/toastergui/templates/mrb_section.html index 2f4820c..758a76c 100644 --- a/bitbake/lib/toaster/toastergui/templates/mrb_section.html +++ b/bitbake/lib/toaster/toastergui/templates/mrb_section.html @@ -36,10 +36,11 @@ {% endif %} {% if build.target_set.all.count > 0 %} - 1 %} - title="Targets: - {% for target in build.target_set.all %} + {{build.get_sorted_target_list.0.target}} + title="Recipes: + {% for target in build.get_sorted_target_list %} {% if target.task %} {{target.target}}:{{target.task}} {% else %} @@ -49,12 +50,12 @@ {% endif %} > {% if build.target_set.all.0.task %} - {{build.target_set.all.0.target}}:{{build.target_set.all.0.task}} + {{build.get_sorted_target_list.0.target}}:{{build.target_set.all.0.task}} {% else %} - {{build.target_set.all.0.target}} + {{build.get_sorted_target_list.0.target}} {% endif %} {% if build.target_set.all.count > 1 %} - (+ {{build.target_set.all.count|add:"-1"}}) + (+{{build.target_set.all.count|add:"-1"}}) {% endif %} {% endif %} -- 2.5.4 (Apple Git-61)