X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetstack%2Fcore%2Fdashboard%2Fviews%2Fhome.py;h=3084c0eca061b0f84da2aefa973ab68a47255188;hb=149befce1a2f20730d6cce5f0b131e1cfc04cd24;hp=ac52b0b2fee7adb044db393f5b890913a1f07a36;hpb=fd936ad3c440fb51d38bbe93f213e3cf2807c845;p=plstackapi.git diff --git a/planetstack/core/dashboard/views/home.py b/planetstack/core/dashboard/views/home.py index ac52b0b..3084c0e 100644 --- a/planetstack/core/dashboard/views/home.py +++ b/planetstack/core/dashboard/views/home.py @@ -27,7 +27,7 @@ class DashboardDynamicView(TemplateView): if name=="root": return self.multiDashboardView(request, context) - elif request.GET.get("wholePage",None): + elif kwargs.get("wholePage",None): return self.singleFullView(request, name, context) else: return self.singleDashboardView(request, name, context) @@ -75,14 +75,46 @@ class DashboardDynamicView(TemplateView): dashboards.append(customize[0]) for i,view in enumerate(dashboards): + # don't display disabled dashboards + if (not view.enabled): + continue body = body + '