aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@intel.com>2015-08-28 17:27:55 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-29 14:00:25 +0100
commit120816b133b9c160c68c911a9f4c612ce2f8a9ed (patch)
tree1cdc8d32f2f7665e458feb67794c918c35d039c9
parent945746f21916eb64a0b4344bcf7e7e0dd75b9547 (diff)
downloadbitbake-120816b133b9c160c68c911a9f4c612ce2f8a9ed.tar.gz
toaster: fix global navigation
The "All builds" item in the global navigation should only be active when you are in the "all builds" page. The global navigation should not appear at all in the landing page and in the new project page. Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/toaster/toastergui/templates/base.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/toaster/toastergui/templates/base.html b/lib/toaster/toastergui/templates/base.html
index f18710026..0b93bb3dd 100644
--- a/lib/toaster/toastergui/templates/base.html
+++ b/lib/toaster/toastergui/templates/base.html
@@ -89,8 +89,9 @@
<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>
{% endif %}
</span>
+ {% if request.resolver_match.url_name != 'landing' and request.resolver_match.url_name != 'newproject' %}
<ul class="nav">
- <li {% if "builds" in request.path %}
+ <li {% if request.resolver_match.url_name == 'all-builds' %}
class="active"
{% endif %}>
<a href="{% url 'all-builds' %}">
@@ -98,7 +99,7 @@
All builds
</a>
</li>
- <li {% if "projects" in request.path %}
+ <li {% if request.resolver_match.url_name == 'all-projects' %}
class="active"
{% endif %}>
<a href="{% url 'all-projects' %}">
@@ -107,6 +108,7 @@
</a>
</li>
</ul>
+ {% endif %}
<ul class="nav pull-right">
<li>
<a target="_blank" href="http://www.yoctoproject.org/docs/latest/toaster-manual/toaster-manual.html">