From 187c2a84efd4a13fc4290d061accc49207f95403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Fri, 5 Oct 2007 15:36:06 +0000 Subject: [PATCH] Simplify a bit TALES expressions git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16870 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_xhtml_style/context_box_render.xml | 22 +++++++++---------- .../bootstrap/erp5_xhtml_style/bt/revision | 2 +- 2 files changed, 11 insertions(+), 13 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml index fa419de949..378b231e0d 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/context_box_render.xml @@ -3,11 +3,8 @@ <record id="1" aka="AAAAAAAAAAE="> <pickle> <tuple> - <tuple> - <string>Products.PageTemplates.ZopePageTemplate</string> - <string>ZopePageTemplate</string> - </tuple> - <none/> + <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/> + <tuple/> </tuple> </pickle> <pickle> @@ -117,7 +114,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n \n <span id="action" metal:define-macro="action">\n <select name="select_action"\n - tal:attributes="onChange string:submitAction(this.form,\'Base_doAction\')">\n + onChange="submitAction(this.form,\'Base_doAction\')">\n <option selected="selected" value=""\n i18n:translate="" i18n:domain="ui">Action...</option>\n <tal:block tal:define="allowed_content_type_list here/getVisibleAllowedContentTypeList | python:[]">\n @@ -195,7 +192,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n button_actions actions/object_button | nothing;\n sort_actions actions/object_sort | nothing;\n ui_actions actions/object_ui | nothing;\n - print_actions actions/object_print | nothing">\n + print_actions actions/object_print | nothing;\n + list_mode list_mode | nothing">\n <span class="separator"></span>\n <tal:block tal:condition="list_mode | nothing">\n <button class="cut" type="submit" name="Folder_cut:method" title="Cut"\n @@ -221,17 +219,17 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n <span class="description" i18n:translate="" i18n:domain="ui">Print</span>\n </button>\n <button class="new" type="submit" title="New"\n - tal:attributes="name python: (getattr(here, \'getParentValue\', None) is not None and getattr(here.getParentValue(), \'getLastId\', None) is not None) and \'Base_createNewDocument:method\' or \'Folder_create:method\'"\n + tal:attributes="name python: list_mode and \'Folder_create:method\' or \'Base_createNewDocument:method\'"\n i18n:attributes="title" i18n:domain="ui">\n <span class="image"></span>\n <span class="description" i18n:translate="" i18n:domain="ui">New</span>\n </button>\n - <button tal:condition="list_mode | nothing" class="delete" type="submit" name="Folder_deleteObjectList:method" title="Delete"\n + <button tal:condition="list_mode" class="delete" type="submit" name="Folder_deleteObjectList:method" title="Delete"\n i18n:attributes="title" i18n:domain="ui">\n <span class="image"></span>\n <span class="description" i18n:translate="" i18n:domain="ui">Delete</span>\n </button>\n - <tal:block tal:condition="not: list_mode | nothing">\n + <tal:block tal:condition="not: list_mode">\n <tal:block tal:condition="request/selection_index | nothing">\n <span class="separator"></span>\n <a class="jump_first" title="First"\n @@ -265,7 +263,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n </a>\n </tal:block>\n </tal:block>\n - <tal:block tal:condition="list_mode | nothing">\n + <tal:block tal:condition="list_mode">\n <span class="separator"></span>\n <a tal:condition="search_actions" class="find" title="Find"\n tal:attributes="href python: here.ERP5Site_renderCustomLink(search_actions[0][\'url\'], http_parameter_list, dialog_category=\'object_search\')"\n @@ -316,7 +314,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n </a>\n </tal:block>\n </tal:block>\n - <tal:block tal:condition="list_mode | nothing">\n + <tal:block tal:condition="list_mode">\n <tal:block tal:condition="ui_actions">\n <span class="separator"></span>\n <a class="configure" title="Configure"\n diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision index 95bae2dc25..8b120bce8f 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision +++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision @@ -1 +1 @@ -446 \ No newline at end of file +447 \ No newline at end of file -- 2.30.9