diff options
-rw-r--r-- | bitbake/lib/toaster/toastergui/tables.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py index 1526d59004..3354072e13 100644 --- a/bitbake/lib/toaster/toastergui/tables.py +++ b/bitbake/lib/toaster/toastergui/tables.py | |||
@@ -403,8 +403,8 @@ class LayerRecipesTable(RecipesTable): | |||
403 | 403 | ||
404 | 404 | ||
405 | def setup_queryset(self, *args, **kwargs): | 405 | def setup_queryset(self, *args, **kwargs): |
406 | RecipesTable.setup_queryset(self, *args, **kwargs) | 406 | self.queryset = \ |
407 | self.queryset = self.queryset.filter(layer_version__pk=int(kwargs['layerid'])) | 407 | Recipe.objects.filter(layer_version__pk=int(kwargs['layerid'])) |
408 | 408 | ||
409 | self.static_context_extra['in_prj'] = ProjectLayer.objects.filter(Q(project=kwargs['pid']) & Q(layercommit=kwargs['layerid'])).count() | 409 | self.static_context_extra['in_prj'] = ProjectLayer.objects.filter(Q(project=kwargs['pid']) & Q(layercommit=kwargs['layerid'])).count() |
410 | 410 | ||
@@ -418,6 +418,8 @@ class LayerRecipesTable(RecipesTable): | |||
418 | self.add_column(title="Description", | 418 | self.add_column(title="Description", |
419 | field_name="get_description_or_summary") | 419 | field_name="get_description_or_summary") |
420 | 420 | ||
421 | self.add_column(title="Version", | ||
422 | field_name="version") | ||
421 | 423 | ||
422 | build_recipe_template ='<button class="btn btn-block build-recipe-btn" data-recipe-name="{{data.name}}" {%if extra.in_prj == 0 %}disabled="disabled"{%endif%}>Build recipe</button>' | 424 | build_recipe_template ='<button class="btn btn-block build-recipe-btn" data-recipe-name="{{data.name}}" {%if extra.in_prj == 0 %}disabled="disabled"{%endif%}>Build recipe</button>' |
423 | 425 | ||