# HG changeset patch # User Nicolas Chauvat # Date 1242830162 -7200 # Node ID c2011d238e9848a0f082b833188b2303ad8a7555 # Parent 893119ce3fef16cda9a2aef4335c985e68d23bfb replace sideRelated with sideBox diff -r 893119ce3fef -r c2011d238e98 web/box.py --- a/web/box.py Wed May 20 16:35:37 2009 +0200 +++ b/web/box.py Wed May 20 16:36:02 2009 +0200 @@ -152,7 +152,7 @@ entity = self.entity(row, col) limit = self.req.property_value('navigation.related-limit') + 1 role = get_role(self) - self.w(u'
') + self.w(u'') diff -r 893119ce3fef -r c2011d238e98 web/data/cubicweb.css --- a/web/data/cubicweb.css Wed May 20 16:35:37 2009 +0200 +++ b/web/data/cubicweb.css Wed May 20 16:36:02 2009 +0200 @@ -455,6 +455,8 @@ padding: 0.2em 0px; margin-bottom: 0.5em; background: #eeedd9; + min-width: 21em; + max-width: 50em; } ul.sideBox li{ @@ -572,24 +574,11 @@ padding: 0.5em 0.2em 0.2em; } -div.sideRelated h4, -div.sideRelated h5 { - margin-top: 0px; - margin-bottom: 0px; -} - div.primaryRight{ float:right; } -div.sideRelated { - margin-right: 1em; - padding: 12px 0px 12px 12px; - min-width: 21em; - max-width: 50em; -} - div.metadata { font-size: 90%; margin: 5px 0px 3px; diff -r 893119ce3fef -r c2011d238e98 web/htmlwidgets.py --- 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 = '%s' % html_escape(self.title) else: title = '%s' % self.title - self.w(u'
%s
' % title) + self.w(u'
%s
' % (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 = '' diff -r 893119ce3fef -r c2011d238e98 web/views/idownloadable.py --- a/web/views/idownloadable.py Wed May 20 16:35:37 2009 +0200 +++ b/web/views/idownloadable.py Wed May 20 16:36:02 2009 +0200 @@ -26,7 +26,7 @@ def download_box(w, entity, title=None, label=None): req = entity.req - w(u'
') + w(u'