]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: Incorrect breadcrumb behaviour in the project page
authorDavid Reyna <David.Reyna@windriver.com>
Fri, 13 Mar 2015 04:50:56 +0000 (21:50 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 21 Mar 2015 00:00:01 +0000 (00:00 +0000)
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>
lib/toaster/toastergui/templates/baseprojectpage.html
lib/toaster/toastergui/views.py

index e1409252ebdfaea0134e3f7a7c0ea77c3d179159..0807f4cb1ddb1c09e019afda263268a3f516042a 100644 (file)
             <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 %}
index e87c9f2890adab49b938db0de0a3ce896a7be951..661023e523c3b60a73015ea5c849b3532a0cdbed 100755 (executable)
@@ -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}