projects
/
matthijs
/
projects
/
wipi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
45aa35c
)
* Edit theme a bit to not show useless crap.
author
Matthijs Kooijman
<matthijs@stdio.flexvps.nl>
Fri, 6 Jun 2008 23:29:20 +0000
(
01:29
+0200)
committer
Matthijs Kooijman
<matthijs@stdio.flexvps.nl>
Fri, 6 Jun 2008 23:29:20 +0000
(
01:29
+0200)
plugin/theme/exodus.py
patch
|
blob
|
history
diff --git
a/plugin/theme/exodus.py
b/plugin/theme/exodus.py
index 1dbe5a5b3f974306689b89f226a014b5ef277948..e5d854d5e75d6c3f985158e5559c545ac48401f7 100644
(file)
--- a/
plugin/theme/exodus.py
+++ b/
plugin/theme/exodus.py
@@
-12,6
+12,12
@@
class Theme(ThemeBase):
name = "exodus"
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
def header(self, d, **kw):
""" Assemble wiki header
@@
-25,17
+31,17
@@
class Theme(ThemeBase):
# Header
u'<div id="header">',
# 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">',
u'<div id="locationline">',
- self.interwiki(d),
+
#
self.interwiki(d),
self.title(d),
u'</div>',
self.trail(d),
self.title(d),
u'</div>',
self.trail(d),
- self.navibar(d),
+
#
self.navibar(d),
#u'<hr id="pageline">',
#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>',
self.msg(d),
self.editbar(d),
u'</div>',
@@
-92,9
+98,10
@@
class Theme(ThemeBase):
# Footer
u'<div id="footer">',
# 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
u'</div>',
# Post footer custom html