From: Scott Baker Date: Mon, 19 May 2014 17:52:10 +0000 (-0700) Subject: fix for tenant view X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=fc06e7859d4950923e31b8a53d7a4b5d3eccee11;p=plstackapi.git fix for tenant view --- diff --git a/planetstack/core/plus/views.py b/planetstack/core/plus/views.py index 37165c0..451ee6d 100644 --- a/planetstack/core/plus/views.py +++ b/planetstack/core/plus/views.py @@ -53,7 +53,15 @@ class DashboardView(TemplateView): def get(self, request, name="hpc_historical", *args, **kwargs): context = self.get_context_data(**kwargs) - t = template.Template(self.head_template + open("/opt/planetstack/templates/admin/dashboard/%s.html" % name, "r").read() + self.tail_template) + head_template = self.head_template + tail_template = self.tail_template + + if (name=="tenant"): + # quick fix for tenant view + head_template = head_template + '
' + + + t = template.Template(head_template + open("/opt/planetstack/templates/admin/dashboard/%s.html" % name, "r").read() + self.tail_template) userDetails = getUserSliceInfo(request.user) #context['site'] = userDetails['site']