X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=plugin%2Ftheme%2Fsite.py;h=3744a1c15b4f52ec040bf81cccc69327f2480c12;hb=34bef8b23099f3def43dcfb34c396ffe2a0fb6fd;hp=e9344851be65d92f702aa69a199296f8e569cbaf;hpb=de9df7d614654bfc9399dfd3055a03833ab51f48;p=matthijs%2Fprojects%2Fwipi.git diff --git a/plugin/theme/site.py b/plugin/theme/site.py index e934485..3744a1c 100644 --- a/plugin/theme/site.py +++ b/plugin/theme/site.py @@ -10,6 +10,7 @@ """ from MoinMoin.theme import ThemeBase +from MoinMoin.Page import Page class SiteTheme(ThemeBase): @@ -24,6 +25,12 @@ class SiteTheme(ThemeBase): return ThemeBase.searchform(self, d) else: return '' + + def navibar(self, d): + if self.request.user.valid: + return ThemeBase.navibar(self, d) + else: + return '' def header(self, d, **kw): """ Assemble wiki header @@ -38,19 +45,17 @@ class SiteTheme(ThemeBase): # Header u'', # Post header custom html (not recommended) @@ -58,6 +63,7 @@ class SiteTheme(ThemeBase): # Start of page self.startPage(), + self.msg(d), ] return u'\n'.join(html) @@ -74,8 +80,7 @@ class SiteTheme(ThemeBase): # Header u'', # Post header custom html (not recommended) @@ -83,6 +88,7 @@ class SiteTheme(ThemeBase): # Start of page self.startPage(), + self.msg(d), ] return u'\n'.join(html) @@ -105,7 +111,9 @@ class SiteTheme(ThemeBase): # Footer u'