* Edit theme a bit to not show useless crap.
authorMatthijs Kooijman <matthijs@stdio.flexvps.nl>
Fri, 6 Jun 2008 23:29:20 +0000 (01:29 +0200)
committerMatthijs Kooijman <matthijs@stdio.flexvps.nl>
Fri, 6 Jun 2008 23:29:20 +0000 (01:29 +0200)
plugin/theme/exodus.py

index 1dbe5a5b3f974306689b89f226a014b5ef277948..e5d854d5e75d6c3f985158e5559c545ac48401f7 100644 (file)
@@ -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'<div id="header">',
-            self.logo(),
-            self.searchform(d),
-            self.username(d),
+            #self.logo(),
+            #self.searchform(d),
+            #self.username(d),
             u'<div id="locationline">',
-            self.interwiki(d),
+            #self.interwiki(d),
             self.title(d),
             u'</div>',
             self.trail(d),
-            self.navibar(d),
+            #self.navibar(d),
             #u'<hr id="pageline">',
-            u'<div id="pageline"><hr style="display:none;"></div>',
+            #u'<div id="pageline"><hr style="display:none;"></div>',
             self.msg(d),
             self.editbar(d),
             u'</div>',
@@ -92,9 +98,10 @@ class Theme(ThemeBase):
 
             # Footer
             u'<div id="footer">',
-            self.editbar(d),
-            self.credits(d),
-            self.showversion(d, **keywords),
+            self.username(d),
+            #self.editbar(d),
+            #self.credits(d),
+            #self.showversion(d, **keywords),
             u'</div>',
 
             # Post footer custom html