From a786ac14f1c6c02c38dc141125035445413f1250 Mon Sep 17 00:00:00 2001 From: Michael Wood Date: Thu, 26 May 2016 16:12:20 +0100 Subject: bitbake: toaster: port table for Built packages to ToasterTable This is the table that displays all the packages built in the build. Build -> Packages. Adds a template snippet for the git revision popover. (Bitbake rev: df62f38ff4e634544c9b1e97c5f6ca45e84a4f1e) Signed-off-by: Michael Wood Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastergui/tables.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'bitbake/lib/toaster/toastergui/tables.py') diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py index 0cf96a0ef3..902f62f708 100644 --- a/bitbake/lib/toaster/toastergui/tables.py +++ b/bitbake/lib/toaster/toastergui/tables.py @@ -146,15 +146,8 @@ class LayersTable(ToasterTable): static_data_template=git_dir_template) revision_template = ''' - {% load projecttags %} {% with vcs_ref=data.get_vcs_reference %} - {% if vcs_ref|is_shaid %} - - {{vcs_ref|truncatechars:10}} - - {% else %} - {{vcs_ref}} - {% endif %} + {% include 'snippets/gitrev_popover.html' %} {% endwith %} ''' @@ -718,6 +711,7 @@ class PackagesTable(ToasterTable): self.add_column(title="Approx Size", orderable=True, + field_name="size", static_data_name="size", static_data_template="{% load projecttags %} \ {{data.size|filtered_filesizeformat}}") -- cgit v1.2.3-54-g00ecf