summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/tables.py
diff options
context:
space:
mode:
authorBelen Barros Pena <belen.barros.pena@linux.intel.com>2016-04-28 13:45:17 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-15 08:35:03 +0100
commit6f924f394acda5e79f5377f4aab8fb6cb052545a (patch)
tree106d4f76f7d6521a258cbeae99ccee192ca79944 /bitbake/lib/toaster/toastergui/tables.py
parentabfd095a05f70e1f2a80c6491d2a5d19593d4824 (diff)
downloadpoky-6f924f394acda5e79f5377f4aab8fb6cb052545a.tar.gz
bitbake: toaster: tweaks to recipe file downloads
* In the custom images table, show the recipe file and download icon only when the recipe file exists and can be downloaded. * Also in the custom images table, make sure the download icon tooltip shows on hover. * In the custom image details page, show the correct icon (download) next to the recipe file in the right hand column. * In the custom image details page, show the recipe file and download icon in the right hand column only when the recipe file exists and can be downloaded * Also in the custom image details page, simplify the help text we show when the 'download' button is disabled: it gave so much information about what's actually happening under the hood that it was a bit hard to follow. (Bitbake rev: 5d4172bc005efe209de595f6a151ae9ed062d051) Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com> Signed-off-by: Elliot Smith <elliot.smith@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.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py
index caa2fba51a..2bbef637aa 100644
--- a/bitbake/lib/toaster/toastergui/tables.py
+++ b/bitbake/lib/toaster/toastergui/tables.py
@@ -495,12 +495,9 @@ class CustomImagesTable(ToasterTable):
495 static_data_template=name_link_template) 495 static_data_template=name_link_template)
496 496
497 recipe_file_template = ''' 497 recipe_file_template = '''
498 <code>{{data.name}}_{{data.version}}.bb</code>
499 {% if data.get_base_recipe_file %} 498 {% if data.get_base_recipe_file %}
500 <a href="{% url 'customrecipedownload' extra.pid data.pk %}"> 499 <code>{{data.name}}_{{data.version}}.bb</code>
501 <i class="icon-download-alt" data-original-title="Download recipe 500 <a href="{% url 'customrecipedownload' extra.pid data.pk %}" class="icon-download-alt get-help" title="Download recipe file"></a>
502 file"></i>
503 </a>
504 {% endif %}''' 501 {% endif %}'''
505 502
506 self.add_column(title="Recipe file", 503 self.add_column(title="Recipe file",