From fc06e7859d4950923e31b8a53d7a4b5d3eccee11 Mon Sep 17 00:00:00 2001 From: Scott Baker Date: Mon, 19 May 2014 10:52:10 -0700 Subject: [PATCH] fix for tenant view --- planetstack/core/plus/views.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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'] -- 2.45.2