From dd99c675f98671f8fb52498bee642d999e045cfc Mon Sep 17 00:00:00 2001 From: Romain Courteaud <romain@nexedi.com> Date: Wed, 25 Mar 2009 16:00:04 +0000 Subject: [PATCH] Generate permanent URL for document's reference in Web Mode git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26159 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../erp5_xhtml_style/ListBox_asSearchStyleHTML.xml | 10 ++++++++-- product/ERP5/bootstrap/erp5_xhtml_style/bt/revision | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asSearchStyleHTML.xml b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asSearchStyleHTML.xml index f90cf7e27f..05c0744c3e 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asSearchStyleHTML.xml +++ b/product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asSearchStyleHTML.xml @@ -283,8 +283,14 @@ tal:define=" listbox_max_lines python: int(here.getMaxLineNumber());\n \n <div class="searchDetails coordinates">\n <tal:block tal:condition="obj/getReference|nothing">\n - <a tal:attributes="href string: ${url}/view"\n - tal:content="obj/getReference|nothing"/> - \n + <tal:block tal:condition="is_web_mode">\n + <a tal:attributes="href python: \'%s/view\' % website.getPermanentURL(obj)"\n + tal:content="obj/getReference|nothing"/> - \n + </tal:block>\n + <tal:block tal:condition="python: not is_web_mode">\n + <a tal:attributes="href string: ${url}/view"\n + tal:content="obj/getReference|nothing"/> - \n + </tal:block>\n </tal:block>\n \n <tal:block \n diff --git a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision index 694f34bc62..8e6ba7fb6c 100644 --- a/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision +++ b/product/ERP5/bootstrap/erp5_xhtml_style/bt/revision @@ -1 +1 @@ -673 \ No newline at end of file +675 \ No newline at end of file -- 2.30.9