~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/base/xhtml.py

Only display tabs and overlays when we are logged in, and JavaScript settings
when we are not in public mode.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
        # Global template
75
75
        ctx = genshi.template.Context()
76
76
        # XXX: Leave this here!! (Before req.styles is read)
77
 
        ctx['overlays'] = self.render_overlays(req)
 
77
        ctx['overlays'] = self.render_overlays(req) if req.user else []
78
78
 
79
79
        ctx['styles'] = [media_url(req, CorePlugin, 'ivle.css')]
80
80
        ctx['styles'] += req.styles