Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 64CDDE00F55; Tue, 6 Sep 2016 03:17:09 -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,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [192.55.52.120 listed in list.dnswl.org] Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 3B2F0E00C6A for ; Tue, 6 Sep 2016 03:17:05 -0700 (PDT) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP; 06 Sep 2016 03:17:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.30,291,1470726000"; d="scan'208,217";a="757587866" Received: from icarus.ld.intel.com ([10.103.239.199]) by FMSMGA003.fm.intel.com with ESMTP; 06 Sep 2016 03:17:06 -0700 From: Belen Barros Pena To: toaster@yoctoproject.org Date: Tue, 6 Sep 2016 11:13:10 +0100 Message-Id: <1473156790-21725-1-git-send-email-belen.barros.pena@linux.intel.com> X-Mailer: git-send-email 1.9.1 Subject: [PATCH] toaster: Indicate active navigation element 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: Tue, 06 Sep 2016 10:17:09 -0000 The left navigation in the build history pages is not showing the active item when you navigate directly to the errors or warnings information in the build summary. Add a special case to make sure the "build summary" item is highlighted. [YOCTO #9864] Signed-off-by: Belen Barros Pena --- bitbake/lib/toaster/toastergui/templates/basebuildpage.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html index 50658e0..01d3117 100644 --- a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html +++ b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html @@ -38,10 +38,13 @@ $(this).parent().addClass("active"); } else { /* Special case the configvar as this is part of configuration - * page but is a separate url + * page but is a separate url, and the direct links to errors + * and warnings, which are part of the build dashboard */ if (window.location.pathname === configVarUrl){ $("#menu-configuration").addClass("active"); + } else if (currentUrl.indexOf('error') > 1 || currentUrl.indexOf('warning') > 1){ + $("#menu-dashboard").addClass("active"); } else { $(this).parent().removeClass("active"); } @@ -57,7 +60,7 @@