summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/toastergui/views.py')
-rwxr-xr-xbitbake/lib/toaster/toastergui/views.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py
index c4264a11a9..e2f2874539 100755
--- a/bitbake/lib/toaster/toastergui/views.py
+++ b/bitbake/lib/toaster/toastergui/views.py
@@ -1870,10 +1870,15 @@ def image_information_dir(request, build_id, target_id, packagefile_id):
1870 return redirect(builds) 1870 return redirect(builds)
1871 # the context processor that supplies data used across all the pages 1871 # the context processor that supplies data used across all the pages
1872 1872
1873 1873# a context processor which runs on every request; this provides the
1874# projects and non_cli_projects (i.e. projects created by the user)
1875# variables referred to in templates, which used to determine the
1876# visibility of UI elements like the "New build" button
1874def managedcontextprocessor(request): 1877def managedcontextprocessor(request):
1878 projects = Project.objects.all()
1875 ret = { 1879 ret = {
1876 "projects": Project.objects.all(), 1880 "projects": projects,
1881 "non_cli_projects": projects.exclude(is_default=True),
1877 "DEBUG" : toastermain.settings.DEBUG, 1882 "DEBUG" : toastermain.settings.DEBUG,
1878 "CUSTOM_IMAGE" : toastermain.settings.CUSTOM_IMAGE, 1883 "CUSTOM_IMAGE" : toastermain.settings.CUSTOM_IMAGE,
1879 "TOASTER_BRANCH": toastermain.settings.TOASTER_BRANCH, 1884 "TOASTER_BRANCH": toastermain.settings.TOASTER_BRANCH,