X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=planetstack%2Fcore%2Fdashboard%2Fviews%2Fhome.py;h=6f57666c161ade5ad264e64fc1d9d5d21b6f7574;hb=d6a61aef42561ea138fcb7b192f3082e018b852b;hp=974e3af0f6b371fcd8fb8a53e72f560b145a63fe;hpb=12bbaacdc7c18d62e2e7716469639ef95e83a5c9;p=plstackapi.git diff --git a/planetstack/core/dashboard/views/home.py b/planetstack/core/dashboard/views/home.py index 974e3af..6f57666 100644 --- a/planetstack/core/dashboard/views/home.py +++ b/planetstack/core/dashboard/views/home.py @@ -75,14 +75,41 @@ 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 + '