Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id B3ACEE00BE9; Fri, 16 Oct 2015 07:33:13 -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.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 9FA54E00BD2 for ; Fri, 16 Oct 2015 07:33:11 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP; 16 Oct 2015 07:33:11 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,689,1437462000"; d="scan'208";a="582183083" Received: from bbryczek-mobl.ger.corp.intel.com (HELO lp.ger.corp.intel.com) ([10.252.3.107]) by FMSMGA003.fm.intel.com with ESMTP; 16 Oct 2015 07:33:10 -0700 From: Elliot Smith To: toaster@yoctoproject.org Date: Fri, 16 Oct 2015 15:32:54 +0100 Message-Id: <1445005977-14892-4-git-send-email-elliot.smith@intel.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1445005977-14892-1-git-send-email-elliot.smith@intel.com> References: <1445005977-14892-1-git-send-email-elliot.smith@intel.com> Subject: [review-request][PATCH 3/6] toaster: Hide top bar buttons in analysis mode 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: Fri, 16 Oct 2015 14:33:13 -0000 The "new build" and "new project" buttons are irrelevant in analysis mode, as you can't start a build or a project. Hide these buttons if not in BUILD_MODE. [YOCTO #8514] Signed-off-by: Elliot Smith --- bitbake/lib/toaster/toastergui/templates/base.html | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html index c1d0693..073c342 100644 --- a/bitbake/lib/toaster/toastergui/templates/base.html +++ b/bitbake/lib/toaster/toastergui/templates/base.html @@ -120,11 +120,19 @@ - - - {% if non_cli_projects.count > 0 %} + + + {% if BUILD_MODE %} + + {% endif %} + + + {% if BUILD_MODE and non_cli_projects.count > 0 %}