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