From b1858653c22eb6d51fc23f75ccad69b76523eb41 Mon Sep 17 00:00:00 2001 From: Elliot Smith Date: Sat, 17 Oct 2015 10:45:50 -0700 Subject: 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 --- lib/toaster/toastergui/templates/base.html | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/lib/toaster/toastergui/templates/base.html b/lib/toaster/toastergui/templates/base.html index c1d069306..073c34243 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 %}