equal
deleted
inserted
replaced
141 elif displayfilter: |
141 elif displayfilter: |
142 req.add_css('cubicweb.facets.css') |
142 req.add_css('cubicweb.facets.css') |
143 actions += self.show_hide_actions(divid, True) |
143 actions += self.show_hide_actions(divid, True) |
144 self.w(u'<div id="%s"' % divid) |
144 self.w(u'<div id="%s"' % divid) |
145 if displayactions: |
145 if displayactions: |
146 for action in self.vreg.possible_actions(req, self.rset).get('mainactions', ()): |
146 for action in self.vreg['actions'].possible_actions(req, self.rset).get('mainactions', ()): |
147 actions.append( (action.url(), req._(action.title), action.html_class(), None) ) |
147 actions.append( (action.url(), req._(action.title), action.html_class(), None) ) |
148 self.w(u' cubicweb:displayactions="1">') # close <div tag |
148 self.w(u' cubicweb:displayactions="1">') # close <div tag |
149 else: |
149 else: |
150 self.w(u'>') # close <div tag |
150 self.w(u'>') # close <div tag |
151 # render actions menu |
151 # render actions menu |