X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Fresourceview.py;h=a407725a41041c3cc0178c411f42728904cd5e0f;hb=3d16aa36af64e8e0e5ce3a48c34df158fbfaae29;hp=ac1813c74e0a93edcd220bcb4092c74006c5992e;hpb=b57d73b52870350b8150f00126394fd0df6d09f1;p=myslice.git diff --git a/portal/resourceview.py b/portal/resourceview.py index ac1813c7..a407725a 100644 --- a/portal/resourceview.py +++ b/portal/resourceview.py @@ -10,9 +10,10 @@ from plugins.lists.simplelist import SimpleList from plugins.slicestat import SliceStat from myslice.configengine import ConfigEngine +from theme import ThemeView # View for 1 platform and its details -class ResourceView(FreeAccessView): +class ResourceView(FreeAccessView, ThemeView): template_name = "resource.html" def get_context_data(self, **kwargs): @@ -88,7 +89,7 @@ class ResourceView(FreeAccessView): context['topmenu_items'] = topmenu_items_live(None, page) # so we can sho who is logged context['username'] = the_user(self.request) - + context['theme'] = self.theme context.update(page.prelude_env()) return context