git://git.onelab.eu
/
unfold.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
contact: updated
[unfold.git]
/
portal
/
platformview.py
diff --git
a/portal/platformview.py
b/portal/platformview.py
index
1b80349
..
b0fc3ec
100644
(file)
--- 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 plugins.querytable import QueryTable
from myslice.configengine import ConfigEngine
+from myslice.theme import ThemeView
# View for 1 platform and its details
# View for 1 platform and its details
-class PlatformView(FreeAccessView):
+class PlatformView(FreeAccessView
, ThemeView
):
template_name = "platform.html"
def get_context_data(self, **kwargs):
template_name = "platform.html"
def get_context_data(self, **kwargs):
@@
-82,7
+83,7
@@
class PlatformView(FreeAccessView):
query = query_resource_default_fields,
query_all = query_resource_all,
# this key is the one issued by google
query = query_resource_default_fields,
query_all = query_resource_all,
# this key is the one issued by google
- googlemap_api_key = Config().googlemap_api_key(),
+ googlemap_api_key = Config
Engine
().googlemap_api_key(),
# the key to use at init-time
init_key = main_query_init_key,
checkboxes = False,
# the key to use at init-time
init_key = main_query_init_key,
checkboxes = False,
@@
-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['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
context.update(page.prelude_env())
return context