From 149befce1a2f20730d6cce5f0b131e1cfc04cd24 Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Mon, 26 Jan 2015 22:12:40 -0800 Subject: [PATCH] make nagios default to (select a controller) --- planetstack/core/dashboard/views/home.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/planetstack/core/dashboard/views/home.py b/planetstack/core/dashboard/views/home.py index 6f57666..3084c0e 100644 --- a/planetstack/core/dashboard/views/home.py +++ b/planetstack/core/dashboard/views/home.py @@ -90,10 +90,11 @@ class DashboardDynamicView(TemplateView): url = view.url body = body + '
\n' % i if (view.controllers.all().count()>0): - body = body + '' % i; + body = body + ''; for j,controllerdashboard in enumerate(view.controllerdashboardviews.all()): body = body + '' % (j, controllerdashboard.controller.name) - body = body + '' + body = body + '
' for j,controllerdashboard in enumerate(view.controllerdashboardviews.all()): body = body + '\n' % (i,j, self.embedDashboard(controllerdashboard.url)); @@ -103,11 +104,15 @@ class DashboardDynamicView(TemplateView): body = body + """ - """ % (i,i,i,i,i,i); + """ % (i,i,i,i,i,i,i); else: body = body + self.embedDashboard(url) body = body + '
\n' -- 2.43.0