mirror of
https://git.yoctoproject.org/poky
synced 2026-03-11 09:49:41 +01:00
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:
committed by
Richard Purdie
parent
8ff98c6c1b
commit
2f684f1bdc
@@ -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 %}
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user