summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/tables.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/tables.py')
-rw-r--r--bitbake/lib/toaster/toastergui/tables.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/tables.py b/bitbake/lib/toaster/toastergui/tables.py
index dca2fa2913..03bd2ae9c6 100644
--- a/bitbake/lib/toaster/toastergui/tables.py
+++ b/bitbake/lib/toaster/toastergui/tables.py
@@ -35,6 +35,8 @@ from toastergui.tablefilter import TableFilterActionToggle
35from toastergui.tablefilter import TableFilterActionDateRange 35from toastergui.tablefilter import TableFilterActionDateRange
36from toastergui.tablefilter import TableFilterActionDay 36from toastergui.tablefilter import TableFilterActionDay
37 37
38import os
39
38class ProjectFilters(object): 40class ProjectFilters(object):
39 @staticmethod 41 @staticmethod
40 def in_project(project_layers): 42 def in_project(project_layers):
@@ -339,6 +341,8 @@ class RecipesTable(ToasterTable):
339 'filter_name' : "in_current_project", 341 'filter_name' : "in_current_project",
340 'static_data_name' : "add-del-layers", 342 'static_data_name' : "add-del-layers",
341 'static_data_template' : '{% include "recipe_btn.html" %}'} 343 'static_data_template' : '{% include "recipe_btn.html" %}'}
344 if '1' == os.environ.get('TOASTER_PROJECTSPECIFIC'):
345 build_col['static_data_template'] = '{% include "recipe_add_btn.html" %}'
342 346
343 def get_context_data(self, **kwargs): 347 def get_context_data(self, **kwargs):
344 project = Project.objects.get(pk=kwargs['pid']) 348 project = Project.objects.get(pk=kwargs['pid'])