From: Belen Barros Pena Date: Mon, 19 Sep 2016 02:33:14 +0000 (-0700) Subject: bitbake: toaster: Indicate active navigation element X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=07aa966b5b7017458345bde6dbc454e1d1c25ec1;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake: toaster: Indicate active navigation element 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] (Bitbake rev: f236d9ca28e45a270f50bb3edcd466b1bc8d2960) Signed-off-by: Belen Barros Pena Signed-off-by: bavery Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html index 50658e0c51d..01d3117e1ea 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 @@