equal
deleted
inserted
replaced
98 boxmenu = BoxMenu(req._('manage bookmarks')) |
98 boxmenu = BoxMenu(req._('manage bookmarks')) |
99 linkto = 'bookmarked_by:%s:subject' % ueid |
99 linkto = 'bookmarked_by:%s:subject' % ueid |
100 # use a relative path so that we can move the instance without |
100 # use a relative path so that we can move the instance without |
101 # loosing bookmarks |
101 # loosing bookmarks |
102 path = req.relative_path() |
102 path = req.relative_path() |
|
103 # XXX if vtitle specified in params, extract it and use it as default value |
|
104 # for bookmark's title |
103 url = self.create_url(self.etype, __linkto=linkto, path=path) |
105 url = self.create_url(self.etype, __linkto=linkto, path=path) |
104 boxmenu.append(self.mk_action(req._('bookmark this page'), url, |
106 boxmenu.append(self.mk_action(req._('bookmark this page'), url, |
105 category='manage', id='bookmark')) |
107 category='manage', id='bookmark')) |
106 if rset: |
108 if rset: |
107 if req.user.is_in_group('managers'): |
109 if req.user.is_in_group('managers'): |