From: Elliot Smith Date: Sat, 17 Oct 2015 17:45:53 +0000 (-0700) Subject: toaster: Remove all navigation when not in build mode X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae754655fa1bc5168f43e8821773e7b7b9440a5d;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git toaster: Remove all navigation when not in build mode 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 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 073c34243cb..dfa6bba70ff 100644 --- a/lib/toaster/toastergui/templates/base.html +++ b/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' %}