web/views/bookmark.py
changeset 5658 7b9553a9db65
parent 5426 0d4853a6e5ee
child 5877 0c7b7b76a84f
equal deleted inserted replaced
5655:ef903fff826d 5658:7b9553a9db65
    94         box.listing_class = 'sideBox'
    94         box.listing_class = 'sideBox'
    95         rschema = self._cw.vreg.schema.rschema(self.rtype)
    95         rschema = self._cw.vreg.schema.rschema(self.rtype)
    96         eschema = self._cw.vreg.schema.eschema(self.etype)
    96         eschema = self._cw.vreg.schema.eschema(self.etype)
    97         candelete = rschema.has_perm(req, 'delete', toeid=ueid)
    97         candelete = rschema.has_perm(req, 'delete', toeid=ueid)
    98         if candelete:
    98         if candelete:
    99             req.add_js( ('cubicweb.ajax.js', 'cubicweb.bookmarks.js') )
    99             req.add_js('cubicweb.ajax.js')
   100         else:
   100         else:
   101             dlink = None
   101             dlink = None
   102         for bookmark in rset.entities():
   102         for bookmark in rset.entities():
   103             label = '<a href="%s">%s</a>' % (xml_escape(bookmark.action_url()),
   103             label = '<a href="%s">%s</a>' % (xml_escape(bookmark.action_url()),
   104                                              xml_escape(bookmark.title))
   104                                              xml_escape(bookmark.title))