summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates/base.html
diff options
context:
space:
mode:
authorElliot Smith <elliot.smith@intel.com>2015-10-17 10:45:53 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-27 07:24:31 +0000
commit78f935df8fafa0ded4decfd89e9bfac52bf5fab2 (patch)
tree678e8feb04d3b7e2890fb2bf63f2017634facc35 /bitbake/lib/toaster/toastergui/templates/base.html
parentc5f147b4ab194606266d3478c3784518d3ec66c9 (diff)
downloadpoky-78f935df8fafa0ded4decfd89e9bfac52bf5fab2.tar.gz
bitbake: 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] (Bitbake rev: ae754655fa1bc5168f43e8821773e7b7b9440a5d) Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/base.html')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/base.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/base.html b/bitbake/lib/toaster/toastergui/templates/base.html
index 073c34243c..dfa6bba70f 100644
--- a/bitbake/lib/toaster/toastergui/templates/base.html
+++ b/bitbake/lib/toaster/toastergui/templates/base.html
@@ -91,9 +91,9 @@
91 <i class="icon-info-sign" title="<strong>Toaster version information</strong>" data-content="<dl><dt>Branch</dt><dd>{{TOASTER_BRANCH}}</dd><dt>Revision</dt><dd>{{TOASTER_REVISION}}</dd></dl>"></i> 91 <i class="icon-info-sign" title="<strong>Toaster version information</strong>" data-content="<dl><dt>Branch</dt><dd>{{TOASTER_BRANCH}}</dd><dt>Revision</dt><dd>{{TOASTER_REVISION}}</dd></dl>"></i>
92 {% endif %} 92 {% endif %}
93 </span> 93 </span>
94 {% if request.resolver_match.url_name != 'landing' and request.resolver_match.url_name != 'newproject' %} 94 {% if BUILD_MODE and request.resolver_match.url_name != 'landing' and request.resolver_match.url_name != 'newproject' %}
95 <ul class="nav"> 95 <ul class="nav">
96 <li {% if request.resolver_match.url_name == 'all-builds' %} 96 <li {% if request.resolver_match.url_name == 'all-builds' %}
97 class="active" 97 class="active"
98 {% endif %}> 98 {% endif %}>
99 <a href="{% url 'all-builds' %}"> 99 <a href="{% url 'all-builds' %}">