83 label = '%s %s' % (dlink, label) |
83 label = '%s %s' % (dlink, label) |
84 box.append(RawBoxItem(label)) |
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')) |
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 instance 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) |
92 boxmenu.append(self.mk_action(req._('bookmark this page'), url, |
92 boxmenu.append(self.mk_action(req._('bookmark this page'), url, |
93 category='manage', id='bookmark')) |
93 category='manage', id='bookmark')) |