From: Elliot Smith Date: Sat, 17 Oct 2015 17:45:50 +0000 (-0700) Subject: toaster: Hide top bar buttons in analysis mode X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b1858653c22eb6d51fc23f75ccad69b76523eb41;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git toaster: Hide top bar buttons in analysis mode 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 Signed-off-by: brian avery Signed-off-by: Richard Purdie --- diff --git a/lib/toaster/toastergui/templates/base.html b/lib/toaster/toastergui/templates/base.html index c1d0693066b..073c34243cb 100644 --- a/lib/toaster/toastergui/templates/base.html +++ b/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 %}