bitbake: 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]

(Bitbake rev: 6966d68e650c2d5655a1e747e70d35f5f037dc94)

Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
David Reyna
2015-03-12 21:50:56 -07:00
committed by Richard Purdie
parent 8ff98c6c1b
commit 2f684f1bdc
2 changed files with 7 additions and 0 deletions

View File

@@ -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 %}

View File

@@ -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}