From 4eed02e627ecd928cf0d88cd887b985fb79bf719 Mon Sep 17 00:00:00 2001 From: Vincent Pelletier <vincent@nexedi.com> Date: Thu, 5 Oct 2006 07:39:19 +0000 Subject: [PATCH] Make image paths absolute forh developper mode buttons. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10554 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_xhtml_style/developper_shortcut_render.xml | 4 ++-- .../portal_skins/erp5_xhtml_style/global_definitions.xml | 1 + product/ERP5/bootstrap/erp5_xhtml_style/bt/revision | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/developper_shortcut_render.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/developper_shortcut_render.xml index cd4d7af6cf..aba5249d65 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/developper_shortcut_render.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/developper_shortcut_render.xml @@ -77,7 +77,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n <tal:block metal:define-macro="edit_link">\n <a tal:condition="python: preferred_html_style_developper_mode and hasattr(object, \'meta_type\')"\n tal:attributes="href python: \'%s/%s\' % (\'/\'.join(object.getPhysicalPath()[len(object.getPortalObject().getPhysicalPath()):]), manage) # XXX: quick hack to get path;\n - title info;"><img tal:attributes="src python: \'images/%s\' % (image, );\n + title info;"><img tal:attributes="src python: \'%s/images/%s\' % (portal_path, image);\n alt info;"/></a>\n </tal:block>\n \n @@ -86,7 +86,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\n <tal:block tal:condition="preferred_html_style_translator_mode">\n <a tal:define="image image | python: \'translate.png\'"\n tal:attributes="href python: \'%s/manage_messages?regex=^%s%%24&lang=%s\' % (\'/\'.join(here.Localizer.erp5_ui.getPhysicalPath()[len(here.Localizer.erp5_ui.getPortalObject().getPhysicalPath()):]), message, selected_language);\n - title info;"><img tal:attributes="src python: \'images/%s\' % (image, );\n + title info;"><img tal:attributes="src python: \'%s/images/%s\' % (portal_path, image);\n alt info;"/></a>\n </tal:block>\n </tal:block>\n diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/global_definitions.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/global_definitions.xml index 9e954997e9..11838e4319 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/global_definitions.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/global_definitions.xml @@ -75,6 +75,7 @@ global preferred_html_style_developper_mode here/portal_preferences/getPreferredHtmlStyleDevelopperMode;\n global preferred_html_style_translator_mode here/portal_preferences/getPreferredHtmlStyleTranslatorMode;\n global selected_language here/Localizer/get_selected_language;\n + global portal_path here/portal_url/getPortalPath;\n "/>\n </tal:block>\n \n diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision index 104fcf5b4e..030d25b286 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision +++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision @@ -1 +1 @@ -243 \ No newline at end of file +248 \ No newline at end of file -- 2.30.9