X-Git-Url: http://git.onelab.eu/?p=plstackapi.git;a=blobdiff_plain;f=planetstack%2Fcore%2Fdashboard%2Fviews%2Fhome.py;h=3084c0eca061b0f84da2aefa973ab68a47255188;hp=6f57666c161ade5ad264e64fc1d9d5d21b6f7574;hb=149befce1a2f20730d6cce5f0b131e1cfc04cd24;hpb=0839c08f0fa0a00898c9ce43cf640a4ab6140948 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'