web/views/tableview.py
changeset 3890 d7a270f50f54
parent 3729 e4f20b74af51
parent 3842 66f3ed1703d0
child 4023 eae23c40627a
--- a/web/views/tableview.py	Sun Nov 08 21:53:18 2009 +0100
+++ b/web/views/tableview.py	Fri Nov 20 19:35:54 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,
@@ -179,9 +180,8 @@
 
     def render_actions(self, divid, actions):
         box = MenuWidget('', 'tableActionsBox', _class='', islist=False)
-        label = '<img src="%s" alt="%s"/>' % (
-            self._cw.datadir_url + 'liveclipboard-icon.png',
-            xml_escape(self._cw._('action(s) on this selection')))
+        label = tags.img(src=self._cw.external_resource('PUCE_DOWN'),
+                         alt=xml_escape(self._cw._('action(s) on this selection')))
         menu = PopupBoxMenu(label, isitem=False, link_class='actionsBox',
                             ident='%sActions' % divid)
         box.append(menu)