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>
This commit is contained in:
Michael Wood 2015-12-07 18:46:14 +00:00 committed by Richard Purdie
parent 1c9ce1ca73
commit 20f400b7bd
1 changed files with 10 additions and 4 deletions

View File

@ -507,14 +507,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",