Commit 015723ac authored by Fabien Morin's avatar Fabien Morin

Base_getOwnerInfoList is part of erp5_web bt. Change ListBox_asSearchStyleHTML...

Base_getOwnerInfoList is part of erp5_web bt. Change ListBox_asSearchStyleHTML to use it only in web_mode.
Use only two big condition instead of many small (is_web_mode  and not: is_web_mode). This should be make listbox displaying a little bit faster.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26331 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 03e746ba
...@@ -283,21 +283,14 @@ ...@@ -283,21 +283,14 @@
<span class="searchDetails found" \n <span class="searchDetails found" \n
tal:content="structure python: obj.Base_showFoundText(selection=selection)"/>\n tal:content="structure python: obj.Base_showFoundText(selection=selection)"/>\n
\n \n
<div class="searchDetails coordinates">\n <div tal:condition="is_web_mode"\n
class="searchDetails coordinates">\n
<tal:block tal:condition="obj/getReference|nothing">\n <tal:block tal:condition="obj/getReference|nothing">\n
<tal:block tal:condition="is_web_mode">\n <a tal:attributes="href python: \'%s/view\' % website.getPermanentURL(obj)"\n
<a tal:attributes="href python: \'%s/view\' % website.getPermanentURL(obj)"\n tal:content="obj/getReference|nothing"/>&nbsp;-&nbsp;\n
tal:content="obj/getReference|nothing"/>&nbsp;-&nbsp;\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"/>&nbsp;-&nbsp;\n
</tal:block>\n
</tal:block>\n </tal:block>\n
\n \n
<tal:block \n <tal:block tal:repeat="section python: website.getWebSectionValueList(obj)">\n
tal:condition="is_web_mode" \n
tal:repeat="section python: website.getWebSectionValueList(obj)">\n
<a href="#" \n <a href="#" \n
tal:content="section/getCompactTranslatedTitle"\n tal:content="section/getCompactTranslatedTitle"\n
tal:attributes="href python: \'%s/view\' %section.absolute_url()"/>\n tal:attributes="href python: \'%s/view\' %section.absolute_url()"/>\n
...@@ -310,12 +303,18 @@ ...@@ -310,12 +303,18 @@
tal:attributes="href owner/url"/>\n tal:attributes="href owner/url"/>\n
&nbsp;-&nbsp;\n &nbsp;-&nbsp;\n
</tal:block>\n </tal:block>\n
\n
<a tal:content="python: date_renderer(obj.getModificationDate())" \n <a tal:content="python: date_renderer(obj.getModificationDate())" \n
tal:attributes="href string: ${url}/Base_viewHistory"/>\n tal:attributes="href string: ${url}/Base_viewHistory"/>\n
</div>\n </div>\n
\n <div tal:condition="not: is_web_mode"\n
\n 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"/>&nbsp;-&nbsp;\n
</tal:block>\n
<a tal:content="python: date_renderer(obj.getModificationDate())" \n
tal:attributes="href string: ${url}/Base_viewHistory"/>\n
</div>\n
</div>\n </div>\n
</td>\n </td>\n
</tr>\n </tr>\n
......
693 694
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment