mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 05:29:32 +00:00
bitbake: toastergui: breadcrumb fixes
Make sure that we use the correct html entity for the breadcrumb dividers, and remove the 'all builds' item from the history pages: all breadcrumbs should now have the project name as their first element, since the 'all builds' page can be reached using the global naviation in the top bar. (Bitbake rev: c97f658f4b2131f280c364c2209efd28878570dc) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
d47358fc95
commit
569567d3b3
@@ -6,14 +6,13 @@
|
||||
<!-- Breadcrumbs -->
|
||||
<div class="section">
|
||||
<ul class="breadcrumb" id="breadcrumb">
|
||||
<li><a href="{% url 'all-builds' %}">All builds</a></li>
|
||||
<li><a href="{% url 'project' build.project.id %}">{{build.project.name}}</a></li>
|
||||
<li><a href="{%url 'builddashboard' build.pk%}">{{build.target_set.all.0.target}} {%if build.target_set.all.count > 1%}(+ {{build.target_set.all.count|add:"-1"}}){%endif%} ({{build.completed_on|date:"d/m/y H:i"}})</a></li>
|
||||
{% block localbreadcrumb %}{% endblock %}
|
||||
</ul>
|
||||
<script>
|
||||
$( function () {
|
||||
$('#breadcrumb > li').append("<span class=\"divider\">→</span>");
|
||||
$('#breadcrumb > li').append('<span class="divider">→</span>');
|
||||
$('#breadcrumb > li:last').addClass("active");
|
||||
$('#breadcrumb > li:last > span').remove();
|
||||
});
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
<!-- Breadcrumbs -->
|
||||
<div class="section">
|
||||
<ul class="breadcrumb" id="breadcrumb">
|
||||
<li><a href="{% url 'all-builds' %}">All builds</a></li>
|
||||
<li><a href="{% url 'project' build.project.id %}">{{build.project.name}}</a></li>
|
||||
<li>
|
||||
{% block parentbreadcrumb %}
|
||||
@@ -21,7 +20,7 @@
|
||||
</ul>
|
||||
<script>
|
||||
$( function () {
|
||||
$('#breadcrumb > li').append("<span class=\"divider\">→</span>");
|
||||
$('#breadcrumb > li').append('<span class="divider">→</span>');
|
||||
$('#breadcrumb > li:last').addClass("active");
|
||||
$('#breadcrumb > li:last > span').remove();
|
||||
console.log("done");
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
<ul class="breadcrumb">
|
||||
<li>
|
||||
<a href="{% url 'project' project.id %}">{{project.name}}</a>
|
||||
<span class="divider">→</span>
|
||||
<span class="divider">→</span>
|
||||
</li>
|
||||
<li><a href="{% url 'projectlayers' project.id %}">Compatible layers</a>
|
||||
<span class="divider">→</span>
|
||||
<span class="divider">→</span>
|
||||
</li>
|
||||
<li>
|
||||
{{layerversion.layer.name}} ({{layerversion.get_vcs_reference|truncatechars:13}})
|
||||
|
||||
Reference in New Issue
Block a user