summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-12-07 18:46:14 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-02-10 13:29:18 +0000
commit20f400b7bdfa492881cff6ce255676c8d4c518ca (patch)
treeeebc9c1ac4b7c307127219cb905dd6c0f9bc4e95 /bitbake
parent1c9ce1ca73837ea77b8a1acbb31ad83cf13a2992 (diff)
downloadpoky-20f400b7bdfa492881cff6ce255676c8d4c518ca.tar.gz
bitbake: toaster: tables add recipe download link to CustomImagesTable
Add the download recipe link and fix the package count field. (Bitbake rev: 85891e5320014f363dba093ac2db681d55375ee3) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/toaster/toastergui/tables.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py
index 6c167a9f4d..ecca22037a 100644
--- a/bitbake/lib/toaster/toastergui/tables.py
+++ b/bitbake/lib/toaster/toastergui/tables.py
@@ -507,14 +507,20 @@ class CustomImagesTable(ToasterTable):
507 static_data_name="name", 507 static_data_name="name",
508 static_data_template=name_link_template) 508 static_data_template=name_link_template)
509 509
510 recipe_file_template = '''
511 <code>{{data.name}}_{{data.version}}.bb</code>
512 <a href="{% url 'customrecipedownload' extra.pid data.pk %}">
513 <i class="icon-download-alt" data-original-title="Download recipe
514 file"></i>
515 </a>'''
516
510 self.add_column(title="Recipe file", 517 self.add_column(title="Recipe file",
511 static_data_name='recipe_file', 518 static_data_name='recipe_file_download',
512 static_data_template='', 519 static_data_template=recipe_file_template)
513 field_name='local_path')
514 520
515 approx_packages_template = ''' 521 approx_packages_template = '''
516 <a href="{% url 'customrecipe' extra.pid data.id %}"> 522 <a href="{% url 'customrecipe' extra.pid data.id %}">
517 {{data.package_set.all|length}} 523 {{data.get_all_packages.count}}
518 </a>''' 524 </a>'''
519 525
520 self.add_column(title="Approx packages", 526 self.add_column(title="Approx packages",