summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/tables.py
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2016-05-26 16:12:20 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-15 08:35:04 +0100
commita786ac14f1c6c02c38dc141125035445413f1250 (patch)
tree0e591f980a70afecbbde39c77e62b7f12ec4a889 /bitbake/lib/toaster/toastergui/tables.py
parentb63f9518e718db09e14c8287fadf0bebcdf5ec9e (diff)
downloadpoky-a786ac14f1c6c02c38dc141125035445413f1250.tar.gz
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 <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/tables.py')
-rw-r--r--bitbake/lib/toaster/toastergui/tables.py10
1 files changed, 2 insertions, 8 deletions
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):
146 static_data_template=git_dir_template) 146 static_data_template=git_dir_template)
147 147
148 revision_template = ''' 148 revision_template = '''
149 {% load projecttags %}
150 {% with vcs_ref=data.get_vcs_reference %} 149 {% with vcs_ref=data.get_vcs_reference %}
151 {% if vcs_ref|is_shaid %} 150 {% include 'snippets/gitrev_popover.html' %}
152 <a class="btn" data-content="<ul class='unstyled'> <li>{{vcs_ref}}</li> </ul>">
153 {{vcs_ref|truncatechars:10}}
154 </a>
155 {% else %}
156 {{vcs_ref}}
157 {% endif %}
158 {% endwith %} 151 {% endwith %}
159 ''' 152 '''
160 153
@@ -718,6 +711,7 @@ class PackagesTable(ToasterTable):
718 711
719 self.add_column(title="Approx Size", 712 self.add_column(title="Approx Size",
720 orderable=True, 713 orderable=True,
714 field_name="size",
721 static_data_name="size", 715 static_data_name="size",
722 static_data_template="{% load projecttags %} \ 716 static_data_template="{% load projecttags %} \
723 {{data.size|filtered_filesizeformat}}") 717 {{data.size|filtered_filesizeformat}}")