From 405e190b314db29e1332c56376dff026a9631202 Mon Sep 17 00:00:00 2001 From: David Reyna Date: Fri, 21 Mar 2014 05:35:50 -0700 Subject: [PATCH] bitbake: toaster: add Image detail and multiple targets to dashboard Filled in the Image section detail information and allow for multiple targets. Each target has a separate section. Added license manifest display. Changed the target of the license manifest link. Added Tasks failed in the build summary. The target lists required filters to create sorted lists. [YOCTO #4258] [YOCTO #5936] (Bitbake rev: 09b099903bdf51bfb277b9a8f922255cfe83ab96) Signed-off-by: Farrell Wymore Signed-off-by: Richard Purdie --- bitbake/lib/toaster/orm/models.py | 5 ++ .../toastergui/templates/basebuildpage.html | 7 +- .../toastergui/templates/builddashboard.html | 87 ++++++++++++++----- bitbake/lib/toaster/toastergui/views.py | 49 ++++++++++- 4 files changed, 122 insertions(+), 26 deletions(-) diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 30599088e5..4975433acd 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py @@ -50,6 +50,11 @@ class Build(models.Model): build_name = models.CharField(max_length=100) bitbake_version = models.CharField(max_length=50) + def get_sorted_target_list(self): + tgts = Target.objects.filter(build_id = self.id).order_by( 'target' ); + return( tgts ); + + @python_2_unicode_compatible class Target(models.Model): search_allowed_fields = ['target', 'file_name'] diff --git a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html index 636fca28dd..0ce5dbd27f 100644 --- a/bitbake/lib/toaster/toastergui/templates/basebuildpage.html +++ b/bitbake/lib/toaster/toastergui/templates/basebuildpage.html @@ -1,4 +1,5 @@ {% extends "base.html" %} +{% load projecttags %} {% load humanize %} {% block pagecontent %} @@ -8,7 +9,7 @@