X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=portal%2Fabout.py;h=1bc51fc21cdb0bb1d7922a64cbe8200e37435908;hb=89af8babd28a7da90ffe59be3ce7b7e812734cd0;hp=49a890bb3435c7fb0412ec54c118b5fc484620f7;hpb=da0b290c0d86afe3d388f4b1a8be60a70b39ed92;p=myslice.git diff --git a/portal/about.py b/portal/about.py index 49a890bb..1bc51fc2 100644 --- a/portal/about.py +++ b/portal/about.py @@ -12,7 +12,7 @@ from manifoldapi.manifoldresult import ManifoldResult from ui.topmenu import topmenu_items, the_user from myslice.configengine import ConfigEngine -from theme import ThemeView +from myslice.theme import ThemeView class AboutView (FreeAccessView, ThemeView): template_name = 'about.html' @@ -20,8 +20,8 @@ class AboutView (FreeAccessView, ThemeView): # expose this so we can mention the backend URL on the welcome page def default_env (self): return { - 'MANIFOLD_URL':ConfigEngine().manifold_url(), - } + 'MANIFOLD_URL':ConfigEngine().manifold_url(), + } def post (self,request): env = self.default_env() @@ -37,15 +37,16 @@ class AboutView (FreeAccessView, ThemeView): env['person'] = None env['theme'] = self.theme - + env['section'] = "About" - env['username']=the_user(request) + env['username'] = the_user(request) env['topmenu_items'] = topmenu_items(None, request) - if state: env['state'] = state - elif not env['username']: env['state'] = None + if state: + env['state'] = state + elif not env['username']: + env['state'] = None # use one or two columns for the layout - not logged in users will see the login prompt - env['layout_1_or_2']="layout-unfold2.html" if not env['username'] else "layout-unfold1.html" - + env['layout_1_or_2'] = "layout-unfold2.html" if not env['username'] else "layout-unfold1.html" return render_to_response(self.template, env, context_instance=RequestContext(request))