# HG changeset patch # User Nicolas Chauvat # Date 1257705428 -3600 # Node ID 8ae53322ffcc8df7f5a332abce9a20b29f7f1174 # Parent 6a4191b0eb9a48e13e0e03ecf717b3f4e149c996 [web ui] change "table actions" icon to arrow-up diff -r 6a4191b0eb9a -r 8ae53322ffcc web/data/external_resources --- a/web/data/external_resources Sun Nov 08 19:34:31 2009 +0100 +++ b/web/data/external_resources Sun Nov 08 19:37:08 2009 +0100 @@ -38,6 +38,7 @@ #FCKEDITOR_PATH = /usr/share/fckeditor/ +PUCE_UP = DATADIR/puce_up.png # icons for entity types BOOKMARK_ICON = DATADIR/icon_bookmark.gif @@ -57,4 +58,4 @@ OK_ICON = DATADIR/ok.png CANCEL_ICON = DATADIR/cancel.png APPLY_ICON = DATADIR/plus.png -TRASH_ICON = DATADIR/trash_can_small.png \ No newline at end of file +TRASH_ICON = DATADIR/trash_can_small.png diff -r 6a4191b0eb9a -r 8ae53322ffcc web/data/puce_up.png Binary file web/data/puce_up.png has changed diff -r 6a4191b0eb9a -r 8ae53322ffcc web/views/tableview.py --- 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 = '%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)