summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2015-03-12 21:50:56 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-03-21 00:00:01 +0000
commit6966d68e650c2d5655a1e747e70d35f5f037dc94 (patch)
tree099b76432d5dadfec319df8c3028aef32e2b4636
parentadcd24b97ea78fbccb870d62bd1297edae3a3487 (diff)
downloadbitbake-6966d68e650c2d5655a1e747e70d35f5f037dc94.tar.gz
toaster: Incorrect breadcrumb behaviour in the project page
The last item in the breadcrumb for the project page should not be a link. [YOCTO #7157] Signed-off-by: David Reyna <David.Reyna@windriver.com>
-rw-r--r--lib/toaster/toastergui/templates/baseprojectpage.html6
-rwxr-xr-xlib/toaster/toastergui/views.py1
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/toaster/toastergui/templates/baseprojectpage.html b/lib/toaster/toastergui/templates/baseprojectpage.html
index e1409252e..0807f4cb1 100644
--- a/lib/toaster/toastergui/templates/baseprojectpage.html
+++ b/lib/toaster/toastergui/templates/baseprojectpage.html
@@ -11,10 +11,16 @@
<li><a href="{% url 'all-builds' %}">All builds</a></li>
{% block parentbreadcrumb %}
{% if project %}
+ {% if project_html %}
+ <li>
+ {{project.name}}
+ </li>
+ {% else %}
<li>
<a href="{%url 'project' project.id %}"><span id="project_name">{{project.name}}</span>
</a>
</li>
+ {% endif %}
{% endif %}
{% endblock %}
{% block localbreadcrumb %}{% endblock %}
diff --git a/lib/toaster/toastergui/views.py b/lib/toaster/toastergui/views.py
index e87c9f289..661023e52 100755
--- a/lib/toaster/toastergui/views.py
+++ b/lib/toaster/toastergui/views.py
@@ -2142,6 +2142,7 @@ if toastermain.settings.MANAGED:
"targets" : map(lambda x: {"target" : x.target, "task" : x.task, "pk": x.pk}, prj.projecttarget_set.all()),
"freqtargets": freqtargets,
"releases": map(lambda x: {"id": x.pk, "name": x.name, "description":x.description}, Release.objects.all()),
+ "project_html": 1,
}
try:
context["machine"] = {"name": prj.projectvariable_set.get(name="MACHINE").value}