Add the download recipe link and fix the package count field.
Signed-off-by: Michael Wood <[email protected]>
---
bitbake/lib/toaster/toastergui/tables.py | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/bitbake/lib/toaster/toastergui/tables.py
b/bitbake/lib/toaster/toastergui/tables.py
index 7ce6651..8147c1b 100644
--- a/bitbake/lib/toaster/toastergui/tables.py
+++ b/bitbake/lib/toaster/toastergui/tables.py
@@ -464,14 +464,20 @@ class CustomImagesTable(ToasterTable):
static_data_name="name",
static_data_template=name_link_template)
+ recipe_file_template = '''
+ <code>{{data.name}}_{{data.version}}.bb</code>
+ <a href="{% url 'customrecipedownload' extra.pid data.pk %}">
+ <i class="icon-download-alt" data-original-title="Download recipe
+ file"></i>
+ </a>'''
+
self.add_column(title="Recipe file",
- static_data_name='recipe_file',
- static_data_template='',
- field_name='local_path')
+ static_data_name='recipe_file_download',
+ static_data_template=recipe_file_template)
approx_packages_template = '''
<a href="{% url 'customrecipe' extra.pid data.id %}">
- {{data.package_set.all|length}}
+ {{data.get_all_packages.count}}
</a>'''
self.add_column(title="Approx packages",
--
2.1.4
--
_______________________________________________
toaster mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/toaster