web/views/tableview.py
branchstable
changeset 3807 8ae53322ffcc
parent 3689 deb13e88e037
child 3842 66f3ed1703d0
--- a/web/views/tableview.py	Sun Nov 08 19:34:31 2009 +0100
+++ b/web/views/tableview.py	Sun Nov 08 19:37:08 2009 +0100
@@ -15,6 +15,7 @@
 from cubicweb.selectors import nonempty_rset, match_form_params
 from cubicweb.utils import make_uid
 from cubicweb.view import EntityView, AnyRsetView
+from cubicweb.common import tags
 from cubicweb.common.uilib import toggle_action, limitsize, htmlescape
 from cubicweb.web import jsonize
 from cubicweb.web.htmlwidgets import (TableWidget, TableColumn, MenuWidget,
@@ -180,9 +181,8 @@
 
     def render_actions(self, divid, actions):
         box = MenuWidget('', 'tableActionsBox', _class='', islist=False)
-        label = '<img src="%s" alt="%s"/>' % (
-            self.req.datadir_url + 'liveclipboard-icon.png',
-            xml_escape(self.req._('action(s) on this selection')))
+        label = tags.img(src=self.req.external_resource('PUCE_UP'),
+                         alt=xml_escape(self.req._('action(s) on this selection')))
         menu = PopupBoxMenu(label, isitem=False, link_class='actionsBox',
                             ident='%sActions' % divid)
         box.append(menu)