From: Scott Baker Date: Sat, 20 Dec 2014 01:15:59 +0000 (-0800) Subject: per-controller view display X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=17ea69b28c8263ec174cbb8b9adbab57d17742b2;p=plstackapi.git per-controller view display --- diff --git a/planetstack/core/dashboard/views/home.py b/planetstack/core/dashboard/views/home.py index 974e3af..c0acfdf 100644 --- a/planetstack/core/dashboard/views/home.py +++ b/planetstack/core/dashboard/views/home.py @@ -82,7 +82,29 @@ class DashboardDynamicView(TemplateView): for i,view in enumerate(dashboards): url = view.url body = body + '
\n' % i - body = body + self.embedDashboard(url) + if (view.controllers.all().count()>0): + body = body + '' + + for j,controllerdashboard in enumerate(view.controllerdashboards.all()): + body = body + '
\n' % (i,j,i) + body = body + self.embedDashboard(controllerdashboard.url); + body = body + '
\n'; + + body = body + """ + """ % (i,i,i,i,i,i); + else: + body = body + self.embedDashboard(url) body = body + '
\n' body=body+"\n"