summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/basebuildpage.html8
-rwxr-xr-xbitbake/lib/toaster/toastergui/views.py9
2 files changed, 7 insertions, 10 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html
index 856259a69d..e9927ebbaa 100644
--- a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html
+++ b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html
@@ -33,7 +33,7 @@
33 33
34 $("#build-menu li a").each(function(){ 34 $("#build-menu li a").each(function(){
35 /* Set the page active state in the Build menu */ 35 /* Set the page active state in the Build menu */
36 var currentUrl = window.location.href.split('?')[0]; 36 var currentUrl = window.location.href.split('?')[0];
37 if (currentUrl === $(this).prop("href")){ 37 if (currentUrl === $(this).prop("href")){
38 $(this).parent().addClass("active"); 38 $(this).parent().addClass("active");
39 } else { 39 } else {
@@ -62,11 +62,13 @@
62 {% endif %} > 62 {% endif %} >
63 <a href="{% url 'builddashboard' build.pk %}">Build summary</a> 63 <a href="{% url 'builddashboard' build.pk %}">Build summary</a>
64 </li> 64 </li>
65 {% if build.target_set.all.0.is_image and build.outcome == 0 %} 65 {% if build.has_images and build.outcome == build.SUCCEEDED %}
66 <li class="nav-header">Images</li> 66 <li class="nav-header">Images</li>
67 {% block nav-target %} 67 {% block nav-target %}
68 {% for t in build.get_sorted_target_list %} 68 {% for t in build.get_sorted_target_list %}
69 <li id="menu-{{t.target}}"><a href="{% url 'target' build.pk t.pk %}">{{t.target}}</a><li> 69 {% if t.has_images %}
70 <li id="menu-{{t.target}}"><a href="{% url 'target' build.pk t.pk %}">{{t.target}}</a><li>
71 {% endif %}
70 {% endfor %} 72 {% endfor %}
71 {% endblock %} 73 {% endblock %}
72 {% endif %} 74 {% endif %}
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index a82a261e0d..02caf54d50 100755
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -471,19 +471,14 @@ def builddashboard( request, build_id ):
471 recipeCount = Recipe.objects.filter( layer_version__id__in = layerVersionId ).count( ); 471 recipeCount = Recipe.objects.filter( layer_version__id__in = layerVersionId ).count( );
472 tgts = Target.objects.filter( build_id = build_id ).order_by( 'target' ); 472 tgts = Target.objects.filter( build_id = build_id ).order_by( 'target' );
473 473
474 ##
475 # set up custom target list with computed package and image data 474 # set up custom target list with computed package and image data
476 #
477
478 targets = [ ] 475 targets = [ ]
479 ntargets = 0 476 ntargets = 0
480 hasImages = False 477
481 targetHasNoImages = False 478 targetHasNoImages = False
482 for t in tgts: 479 for t in tgts:
483 elem = { } 480 elem = { }
484 elem[ 'target' ] = t 481 elem[ 'target' ] = t
485 if t.is_image:
486 hasImages = True
487 npkg = 0 482 npkg = 0
488 pkgsz = 0 483 pkgsz = 0
489 package = None 484 package = None
@@ -533,7 +528,7 @@ def builddashboard( request, build_id ):
533 context = { 528 context = {
534 'build' : build, 529 'build' : build,
535 'project' : build.project, 530 'project' : build.project,
536 'hasImages' : hasImages, 531 'hasImages' : build.has_images(),
537 'ntargets' : ntargets, 532 'ntargets' : ntargets,
538 'targets' : targets, 533 'targets' : targets,
539 'recipecount' : recipeCount, 534 'recipecount' : recipeCount,