toaster: add missing link to image recipe details
PATCH 1/1 toaster: add missing link to image recipe details
From: Belen Barros Pena <[email protected]>
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.
Signed-off-by Belen Barros Pena <[email protected]>
--- bitbake/lib/toaster/toastergui/tables.py | 7 +++++++ 1 file changed, 7 insertions(+)
bitbake/lib/toaster/toastergui/tables.py +7 -0
@@ -589,12 +589,19 @@ class NewCustomImagesTable(ImageRecipesTable): self.queryset = self.queryset.filter(is_image=True) def setup_columns(self, *args, **kwargs): + + name_link_template = ''' + <a href="{% url 'recipedetails' extra.pid data.pk %}">{{data.name}}</a> + ''' + self.add_column(title="Image recipe", help_text="When you build an image recipe, you get an " "image: a root file system you can" "deploy to a machine", hideable=False, orderable=True, + static_data_name="name", + static_data_template=name_link_template, field_name="name") super(ImageRecipesTable, self).setup_columns(*args, **kwargs)
Signature · 1 line
2.5.4 (Apple Git-61)