web/views/bookmark.py
branchtls-sprint
changeset 939 ad72e06320e2
parent 742 99115e029dca
parent 852 105893288777
child 1151 b20677336ee6
equal deleted inserted replaced
913:5dfba71b1872 939:ad72e06320e2
    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)