diff options
author | Belen Barros Pena <belen.barros.pena@intel.com> | 2016-02-22 09:08:40 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-26 17:20:26 +0000 |
commit | 88b56603ce18337ac3c31185ae6ee90e9551c2ae (patch) | |
tree | 42a5bcdf45ca9945d562c5296f1a085c73c56ae2 /bitbake/lib/toaster/toastergui/tables.py | |
parent | 25b179d5c31ad12971aa2ff31ab72b6eae757a16 (diff) | |
download | poky-88b56603ce18337ac3c31185ae6ee90e9551c2ae.tar.gz |
bitbake: toaster: add missing link to image recipe details
In the 'New custom image' page, each image recipe name listed should
link to the corresponding image recipe details page, so that users can
look into what packages are installed by a certain image, and decide
based on that if they want to customise it or not.
This patch adds that missing link.
(Bitbake rev: a481af693bfef0171732c18c298e285986b82de3)
Signed-off-by: Belen Barros Pena <belen.barros.pena@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.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py index c0ad2b7bfa..b51e1b4f49 100644 --- a/bitbake/lib/toaster/toastergui/tables.py +++ b/bitbake/lib/toaster/toastergui/tables.py | |||
@@ -589,12 +589,19 @@ class NewCustomImagesTable(ImageRecipesTable): | |||
589 | self.queryset = self.queryset.filter(is_image=True) | 589 | self.queryset = self.queryset.filter(is_image=True) |
590 | 590 | ||
591 | def setup_columns(self, *args, **kwargs): | 591 | def setup_columns(self, *args, **kwargs): |
592 | |||
593 | name_link_template = ''' | ||
594 | <a href="{% url 'recipedetails' extra.pid data.pk %}">{{data.name}}</a> | ||
595 | ''' | ||
596 | |||
592 | self.add_column(title="Image recipe", | 597 | self.add_column(title="Image recipe", |
593 | help_text="When you build an image recipe, you get an " | 598 | help_text="When you build an image recipe, you get an " |
594 | "image: a root file system you can" | 599 | "image: a root file system you can" |
595 | "deploy to a machine", | 600 | "deploy to a machine", |
596 | hideable=False, | 601 | hideable=False, |
597 | orderable=True, | 602 | orderable=True, |
603 | static_data_name="name", | ||
604 | static_data_template=name_link_template, | ||
598 | field_name="name") | 605 | field_name="name") |
599 | 606 | ||
600 | super(ImageRecipesTable, self).setup_columns(*args, **kwargs) | 607 | super(ImageRecipesTable, self).setup_columns(*args, **kwargs) |