X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Fplatformview.py;h=b0fc3ec712415006c46afadc8d4c686b8eec90bb;hb=a78545c7d98477942e7b6dd216ab9581d9309856;hp=a39fce9942d152bb2dc6e38418f955563849a04a;hpb=902d7e75b27625363fb684bc41255241e7f6272a;p=unfold.git diff --git a/portal/platformview.py b/portal/platformview.py index a39fce99..b0fc3ec7 100644 --- a/portal/platformview.py +++ b/portal/platformview.py @@ -15,9 +15,10 @@ from ui.topmenu import topmenu_items_live, the_user from plugins.querytable import QueryTable from myslice.configengine import ConfigEngine +from myslice.theme import ThemeView # View for 1 platform and its details -class PlatformView(FreeAccessView): +class PlatformView(FreeAccessView, ThemeView): template_name = "platform.html" def get_context_data(self, **kwargs): @@ -140,7 +141,7 @@ class PlatformView(FreeAccessView): context['topmenu_items'] = topmenu_items_live('Platforms', 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