diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/toaster/toastergui/tables.py | 14 |
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", |