Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 78737E00BEB; Fri, 16 Oct 2015 07:33:25 -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 6977EE00BE9 for ; Fri, 16 Oct 2015 07:33:15 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP; 16 Oct 2015 07:33:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.17,689,1437462000"; d="scan'208";a="582183119" 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:14 -0700 From: Elliot Smith To: toaster@yoctoproject.org Date: Fri, 16 Oct 2015 15:32:57 +0100 Message-Id: <1445005977-14892-7-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 6/6] toaster: Remove all navigation when not in build 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:25 -0000 The user is redirected to the all builds page or all projects page from the landing page, regardless of mode. In build mode, this makes sense; but in analysis mode, we are restricting the view to just the cli builds project. This means that "all projects" and "all builds" only contains items relating to this one project. Modify the landing page so it redirects to the project builds page for the cli builds project when not in build mode. Also remove navigation elements which are irrelevant when not in build mode. [YOCTO #8514] Signed-off-by: Elliot Smith --- bitbake/lib/toaster/toastergui/templates/base.html | 4 ++-- bitbake/lib/toaster/toastergui/views.py | 14 ++++++++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html index 073c342..dfa6bba 100644 --- a/bitbake/lib/toaster/toastergui/templates/base.html +++ b/bitbake/lib/toaster/toastergui/templates/base.html @@ -91,9 +91,9 @@ {% endif %} - {% if request.resolver_match.url_name != 'landing' and request.resolver_match.url_name != 'newproject' %} + {% if BUILD_MODE and request.resolver_match.url_name != 'landing' and request.resolver_match.url_name != 'newproject' %}