79 html_escape(bookmark.title)) |
79 html_escape(bookmark.title)) |
80 if candelete: |
80 if candelete: |
81 dlink = u'[<a href="javascript:removeBookmark(%s)" title="%s">-</a>]' % ( |
81 dlink = u'[<a href="javascript:removeBookmark(%s)" title="%s">-</a>]' % ( |
82 bookmark.eid, _('delete this bookmark')) |
82 bookmark.eid, _('delete this bookmark')) |
83 label = '%s %s' % (dlink, label) |
83 label = '%s %s' % (dlink, label) |
84 box.append(RawBoxItem(label, liclass=u'invisible')) |
84 box.append(RawBoxItem(label)) |
85 if eschema.has_perm(req, 'add') and rschema.has_perm(req, 'add', toeid=ueid): |
85 if eschema.has_perm(req, 'add') and rschema.has_perm(req, 'add', toeid=ueid): |
86 boxmenu = BoxMenu(req._('manage bookmarks'), liclass=u'invisible') |
86 boxmenu = BoxMenu(req._('manage bookmarks')) |
87 linkto = 'bookmarked_by:%s:subject' % ueid |
87 linkto = 'bookmarked_by:%s:subject' % ueid |
88 # use a relative path so that we can move the application without |
88 # use a relative path so that we can move the application without |
89 # loosing bookmarks |
89 # loosing bookmarks |
90 path = req.relative_path() |
90 path = req.relative_path() |
91 url = self.create_url(self.etype, __linkto=linkto, path=path) |
91 url = self.create_url(self.etype, __linkto=linkto, path=path) |