--- a/web/htmlwidgets.py Wed May 20 16:35:37 2009 +0200
+++ b/web/htmlwidgets.py Wed May 20 16:36:02 2009 +0200
@@ -57,6 +57,7 @@
def append(self, item):
self.items.append(item)
+ title_class = 'boxTitle'
main_div_class = 'boxContent'
listing_class = 'boxListing'
@@ -82,7 +83,7 @@
title = '<span>%s</span>' % html_escape(self.title)
else:
title = '<span>%s</span>' % self.title
- self.w(u'<div class="boxTitle">%s</div>' % title)
+ self.w(u'<div class="%s">%s</div>' % (self.title_class, title))
if self.items:
self.box_begin_content()
for item in self.items:
@@ -93,6 +94,7 @@
class SideBoxWidget(BoxWidget):
"""default CubicWeb's sidebox widget"""
+ title_class = u'sideBoxTitle'
main_div_class = u'sideBoxBody'
listing_class = ''