From 17ea69b28c8263ec174cbb8b9adbab57d17742b2 Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Fri, 19 Dec 2014 17:15:59 -0800 Subject: [PATCH] per-controller view display --- planetstack/core/dashboard/views/home.py | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) 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" -- 2.43.0