From 782f53f2a8b39f82d6ab8982da11cb6df7a1d3c9 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Sat, 7 Jun 2008 01:29:20 +0200 Subject: [PATCH] * Edit theme a bit to not show useless crap. --- plugin/theme/exodus.py | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) 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 -- 2.30.2