Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 30D4CE00DC9; Thu, 28 Apr 2016 05:56:20 -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=-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.65 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 576B7E00DC1 for ; Thu, 28 Apr 2016 05:56:14 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga103.jf.intel.com with ESMTP; 28 Apr 2016 05:55:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,546,1455004800"; d="scan'208";a="693715169" Received: from icarus.isw.intel.com ([10.237.224.37]) by FMSMGA003.fm.intel.com with ESMTP; 28 Apr 2016 05:55:59 -0700 From: Belen Barros Pena To: toaster@yoctoproject.org Date: Thu, 28 Apr 2016 13:45:17 +0100 Message-Id: <1461847517-22477-1-git-send-email-belen.barros.pena@linux.intel.com> X-Mailer: git-send-email 1.9.1 Subject: [PATCH] toaster: Tweaks to recipe file downloads 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, 28 Apr 2016 12:56:20 -0000 * In the custom images table, show the recipe file and download icon only when the recipe file exists and can be downloaded. * Also in the custom images table, make sure the download icon tooltip shows on hover. * In the custom image details page, show the correct icon (download) next to the recipe file in the right hand column. * In the custom image details page, show the recipe file and download icon in the right hand column only when the recipe file exists and can be downloaded * Also in the custom image details page, simplify the help text we show when the 'download' button is disabled: it gave so much information about what's actually happening under the hood that it was a bit hard to follow. Signed-off-by: Belen Barros Pena --- bitbake/lib/toaster/toastergui/tables.py | 7 ++----- bitbake/lib/toaster/toastergui/templates/customrecipe.html | 8 ++++---- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py index d375da4..eb876ec 100644 --- a/bitbake/lib/toaster/toastergui/tables.py +++ b/bitbake/lib/toaster/toastergui/tables.py @@ -507,12 +507,9 @@ class CustomImagesTable(ToasterTable): static_data_template=name_link_template) recipe_file_template = ''' - {{data.name}}_{{data.version}}.bb {% if data.get_base_recipe_file %} - - - + {{data.name}}_{{data.version}}.bb + {% endif %}''' self.add_column(title="Recipe file", diff --git a/bitbake/lib/toaster/toastergui/templates/customrecipe.html b/bitbake/lib/toaster/toastergui/templates/customrecipe.html index aeb4466..4b1ef66 100644 --- a/bitbake/lib/toaster/toastergui/templates/customrecipe.html +++ b/bitbake/lib/toaster/toastergui/templates/customrecipe.html @@ -107,7 +107,7 @@ Download recipe file {% if not base_recipe_file %} + data-original-title="The recipe file doesn't exist yet, so you cannot download it. You need to build your custom image first"> {% endif %} @@ -182,13 +182,13 @@ {% endwith %} {% endif %} + {% if base_recipe_file %}
Recipe file
{{recipe.name}}_{{recipe.version}}.bb - {% if base_recipe_path %} - - {% endif %} +
+ {% endif %}
Layer
{{recipe.layer_version.layer.name}}
{% if recipe.summary %} -- 1.9.1