summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/widgets.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/widgets.py')
-rw-r--r--bitbake/lib/toaster/toastergui/widgets.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/widgets.py b/bitbake/lib/toaster/toastergui/widgets.py
index 67c1ff9615..a1792d997f 100644
--- a/bitbake/lib/toaster/toastergui/widgets.py
+++ b/bitbake/lib/toaster/toastergui/widgets.py
@@ -41,6 +41,7 @@ import types
41import json 41import json
42import collections 42import collections
43import re 43import re
44import os
44 45
45from toastergui.tablefilter import TableFilterMap 46from toastergui.tablefilter import TableFilterMap
46 47
@@ -86,6 +87,9 @@ class ToasterTable(TemplateView):
86 context['table_name'] = type(self).__name__.lower() 87 context['table_name'] = type(self).__name__.lower()
87 context['empty_state'] = self.empty_state 88 context['empty_state'] = self.empty_state
88 89
90 # global variables
91 context['project_enable'] = ('1' == os.environ.get('TOASTER_BUILDSERVER'))
92
89 return context 93 return context
90 94
91 def get(self, request, *args, **kwargs): 95 def get(self, request, *args, **kwargs):