From: Matthijs Kooijman Date: Fri, 6 Jun 2008 23:29:20 +0000 (+0200) Subject: * Edit theme a bit to not show useless crap. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=782f53f2a8b39f82d6ab8982da11cb6df7a1d3c9;p=matthijs%2Fprojects%2Fwipi.git * Edit theme a bit to not show useless crap. --- diff --git a/plugin/theme/exodus.py b/plugin/theme/exodus.py index 1dbe5a5..e5d854d 100644 --- a/plugin/theme/exodus.py +++ b/plugin/theme/exodus.py @@ -12,6 +12,12 @@ class Theme(ThemeBase): name = "exodus" + def editbar(self, d): + if self.request.user.valid: + return ThemeBase.editbar(self, d) + else: + return '' + def header(self, d, **kw): """ Assemble wiki header @@ -25,17 +31,17 @@ class Theme(ThemeBase): # Header u'', @@ -92,9 +98,10 @@ class Theme(ThemeBase): # Footer u'', # Post footer custom html