[Erp5-report] r26331 - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style: SkinTemplat...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Apr 7 15:07:54 CEST 2009


Author: fabien
Date: Tue Apr  7 15:07:52 2009
New Revision: 26331

URL: http://svn.erp5.org?rev=26331&view=rev
Log:
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.

Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asSearchStyleHTML.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asSearchStyleHTML.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asSearchStyleHTML.xml?rev=26331&r1=26330&r2=26331&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asSearchStyleHTML.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/ListBox_asSearchStyleHTML.xml [utf8] Tue Apr  7 15:07:52 2009
@@ -283,21 +283,14 @@
                       <span class="searchDetails found" \n
                             tal:content="structure python: obj.Base_showFoundText(selection=selection)"/>\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="is_web_mode">\n
-                            <a tal:attributes="href python: \'%s/view\' % website.getPermanentURL(obj)"\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
+                          <a tal:attributes="href python: \'%s/view\' % website.getPermanentURL(obj)"\n
+                             tal:content="obj/getReference|nothing"/>&nbsp;-&nbsp;\n
                         </tal:block>\n
 \n
-                        <tal:block \n
-                          tal:condition="is_web_mode" \n
-                          tal:repeat="section python: website.getWebSectionValueList(obj)">\n
+                        <tal:block tal:repeat="section python: website.getWebSectionValueList(obj)">\n
                           <a href="#" \n
                              tal:content="section/getCompactTranslatedTitle"\n
                              tal:attributes="href python: \'%s/view\' %section.absolute_url()"/>\n
@@ -310,12 +303,18 @@
                                tal:attributes="href owner/url"/>\n
                            &nbsp;-&nbsp;\n
                         </tal:block>\n
- \n
                         <a tal:content="python: date_renderer(obj.getModificationDate())" \n
                            tal:attributes="href string: ${url}/Base_viewHistory"/>\n
                       </div>\n
-\n
-\n
+                      <div tal:condition="not: is_web_mode"\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
                   </td>\n
                 </tr>\n

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision?rev=26331&r1=26330&r2=26331&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision [utf8] Tue Apr  7 15:07:52 2009
@@ -1,1 +1,1 @@
-693
+694




More information about the Erp5-report mailing list