web/facet.py
branchtls-sprint
changeset 1132 96752791c2b6
parent 985 6a25c58a1c23
child 1149 1e19b6ef53a1
equal deleted inserted replaced
1131:544609e83317 1132:96752791c2b6
   518                 _('OR'), _('AND')))
   518                 _('OR'), _('AND')))
   519         cssclass = ''
   519         cssclass = ''
   520         if not self.facet.start_unfolded:
   520         if not self.facet.start_unfolded:
   521             cssclass += ' hidden'
   521             cssclass += ' hidden'
   522         if len(self.items) > 6:
   522         if len(self.items) > 6:
   523             cssclass +=' overflowed'
   523             cssclass += ' overflowed'
   524         self.w(u'<div class="facetBody%s">\n' % cssclass)
   524         self.w(u'<div class="facetBody%s">\n' % cssclass)
   525         for item in self.items:
   525         for item in self.items:
   526             item.render(self.w)
   526             item.render(self.w)
   527         self.w(u'</div>\n')
   527         self.w(u'</div>\n')
   528         self.w(u'</div>\n')
   528         self.w(u'</div>\n')