From: Elliot Smith Date: Tue, 12 Jul 2016 22:54:43 +0000 (-0700) Subject: bitbake: toaster: display Target targets in build dashboard X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b0585e6b0c8d4b9a7d2102e615fff0ef069e0f98;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake: toaster: display Target targets in build dashboard The build dashboard was showing the targets for the build in the page heading and title as "Target object". Add a filter which extracts the "target" from each Target object as a string so that the heading and title display correctly. Also sort the image file suffixes alphabetically. [YOCTO #8556] (Bitbake rev: 33a24992139e7dc05d14bbe1da60299b732945aa) Signed-off-by: Elliot Smith Signed-off-by: bavery Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/toaster/toastergui/templates/builddashboard.html b/bitbake/lib/toaster/toastergui/templates/builddashboard.html index 04a57ef64f9..dcda2a891f7 100644 --- a/bitbake/lib/toaster/toastergui/templates/builddashboard.html +++ b/bitbake/lib/toaster/toastergui/templates/builddashboard.html @@ -1,8 +1,9 @@ {% extends "basebuildpage.html" %} {% load humanize %} {% load projecttags %} +{% load field_values_filter %} -{% block title %} {{build.target_set.all|dictsort:"target"|join:", "}} {{build.machine}} - {{build.project.name}} - Toaster {% endblock %} +{% block title %} {{build.get_sorted_target_list|field_values:"target"|join:", "}} {{build.machine}} - {{build.project.name}} - Toaster {% endblock %} {% block parentbreadcrumb %} {% if build.get_sorted_target_list.count > 0 %} {{build.get_sorted_target_list.0.target}} @@ -15,7 +16,7 @@