[Erp5-report] r35127 jerome - in /erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style: Skin...

nobody at svn.erp5.org nobody at svn.erp5.org
Mon May 10 12:01:17 CEST 2010


Author: jerome
Date: Mon May 10 12:01:14 2010
New Revision: 35127

URL: http://svn.erp5.org?rev=35127&view=rev
Log:
all ERP5Site_render*ActionList where very similar. Use a macro to share code. This applies fix from 26056 for all tabs

Added:
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderActionList.xml
Modified:
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderDocumentCreationActionList.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderDocumentSearchActionList.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderExchangeActionList.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderPrintActionList.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderReportActionList.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderViewActionList.xml
    erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/bt/revision

Added: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderActionList.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderActionList.xml?rev=35127&view=auto
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderActionList.xml (added)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderActionList.xml [utf8] Mon May 10 12:01:14 2010
@@ -1,0 +1,116 @@
+<?xml version="1.0"?>
+<ZopeData>
+  <record id="1" aka="AAAAAAAAAAE=">
+    <pickle>
+      <tuple>
+        <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
+        <tuple/>
+      </tuple>
+    </pickle>
+    <pickle>
+      <dictionary>
+        <item>
+            <key> <string>_bind_names</string> </key>
+            <value>
+              <object>
+                <klass>
+                  <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
+                </klass>
+                <tuple/>
+                <state>
+                  <dictionary>
+                    <item>
+                        <key> <string>_asgns</string> </key>
+                        <value>
+                          <dictionary>
+                            <item>
+                                <key> <string>name_subpath</string> </key>
+                                <value> <string>traverse_subpath</string> </value>
+                            </item>
+                          </dictionary>
+                        </value>
+                    </item>
+                  </dictionary>
+                </state>
+              </object>
+            </value>
+        </item>
+        <item>
+            <key> <string>_text</string> </key>
+            <value> <string encoding="cdata"><![CDATA[
+
+<tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n
+           xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n
+           xmlns:metal="http://xml.zope.org/namespaces/metal"\n
+           i18n:domain="ui"\n
+           tal:define="dummy python: request.RESPONSE.setHeader(\'Content-Type\', \n
+                                                       \'text/html;; charset=utf-8\');">\n
+  <table metal:define-macro="table"\n
+         tal:define="max_per_line python: 4;\n
+         cell_number python: len(module_category_list);\n
+         row_number python: (cell_number/max_per_line+1)">\n
+    <tr tal:repeat="row python: xrange(row_number)">\n
+      <tal:block tal:repeat="module_category python: module_category_list[(row*max_per_line):((row+1)*max_per_line)]">\n
+        <td>\n
+        <div style="width:25%; min-width:150px; float:left;"\n
+            class="tabbertabcont"\n
+            tal:define="module_list python:module_category[1]">\n
+          <ul style="list-style-type:none; padding-left:10px; white-space:nowrap;"\n
+              tal:condition="python:module_list">\n
+            <li style="font-weight:bold; color:#002e3f;" i18n:translate=""\n
+                tal:content="python:module_category[0]" />\n
+            <ul style="list-style-type:none; padding-left:0;">\n
+              <tal:block tal:repeat="module module_list">\n
+                <tal:block tal:define="action_list python:module[1];\n
+                                      default_action python:test(len(action_list) > 1, None, action_list[0])"\n
+                          tal:condition="python:action_list">\n
+                  <li style="color:#002e3f;">\n
+                    <span style="color:#002e3f;"\n
+                          tal:condition="not:default_action"\n
+                          tal:content="python:module[0]"></span>\n
+                    <a tal:condition="default_action"\n
+                      tal:content="python:module[0]"\n
+                      tal:attributes="href python:default_action[1]"></a>\n
+                  </li>\n
+                  <ul tal:condition="not:default_action"\n
+                      style="list-style-type:none; padding-left:15px;">\n
+                    <li tal:repeat="action action_list">\n
+                      <a style="color:#3d7474" \n
+                        tal:content="python:action[0]"\n
+                        tal:attributes="href python:action[1]"></a>\n
+                    </li>\n
+                  </ul>\n
+                </tal:block>\n
+              </tal:block>\n
+            </ul>\n
+          </ul>\n
+        </div>\n
+      </td>\n
+    </tal:block>\n
+    </tr>\n
+  </table>\n
+</tal:block>\n
+
+
+]]></string> </value>
+        </item>
+        <item>
+            <key> <string>content_type</string> </key>
+            <value> <string>text/html</string> </value>
+        </item>
+        <item>
+            <key> <string>expand</string> </key>
+            <value> <int>0</int> </value>
+        </item>
+        <item>
+            <key> <string>id</string> </key>
+            <value> <string>ERP5Site_renderActionList</string> </value>
+        </item>
+        <item>
+            <key> <string>title</string> </key>
+            <value> <string></string> </value>
+        </item>
+      </dictionary>
+    </pickle>
+  </record>
+</ZopeData>

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderDocumentCreationActionList.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderDocumentCreationActionList.xml?rev=35127&r1=35126&r2=35127&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderDocumentCreationActionList.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderDocumentCreationActionList.xml [utf8] Mon May 10 12:01:14 2010
@@ -40,53 +40,13 @@
             <value> <string encoding="cdata"><![CDATA[
 
 <tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n
-           xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n
-           i18n:domain="ui"\n
-           tal:define="info_dict here/ERP5Site_getCategorizedModuleActionInformationDict;\n
+           xmlns:metal="http://xml.zope.org/namespaces/metal"\n
+           tal:define="info_dict context/ERP5Site_getCategorizedModuleActionInformationDict;\n
                        module_category_list info_dict/add | nothing;\n
                        dummy python:module_category_list.sort();\n
                        dummy python: request.RESPONSE.setHeader(\'Content-Type\', \n
                                                                 \'text/html;; charset=utf-8\');">\n
-  <table tal:define="max_per_line python: 4;\n
-                    cell_number python: len(module_category_list);\n
-                    row_number python: (cell_number/max_per_line+1)">\n
-    <tr tal:repeat="row python: xrange(row_number)">\n
-      <tal:block tal:repeat="module_category python: module_category_list[(row*max_per_line):((row+1)*max_per_line)]">\n
-        <td>\n
-          <div style="width:25%; min-width:150px; float:left; white-space:nowrap;"\n
-              tal:define="module_list python:module_category[1]">\n
-            <ul style="list-style-type:none; padding-left:10px;">\n
-              <li style="font-weight:bold; color:#002e3f;" i18n:translate=""\n
-                  tal:content="python:module_category[0]"/>\n
-              <ul style="list-style-type:none; padding-left:0;">\n
-                <tal:block tal:repeat="module module_list">\n
-                  <tal:block tal:define="action_list python:module[1];\n
-                                        default_action python:test(len(action_list) > 1, None, action_list[0])"\n
-                            tal:condition="python:action_list">\n
-                    <li style="color:#002e3f;">\n
-                      <a href="" i18n:translate=""\n
-                        tal:omit-tag="python:default_action is None"\n
-                        tal:attributes="href python:default_action and default_action[1]"\n
-                        tal:content="python:default_action and default_action[0] or module[0]">\n
-                      </a>\n
-                    </li>\n
-                    <ul tal:condition="python:default_action is None"\n
-                        style="list-style-type:none; padding-left:15px;">\n
-                      <li tal:repeat="action action_list">\n
-                        <a style="color:#3d7474" i18n:translate=""\n
-                          tal:content="python:action[0]"\n
-                          tal:attributes="href python:action[1]"/>\n
-                      </li>\n
-                    </ul>\n
-                  </tal:block>\n
-                </tal:block>\n
-              </ul>\n
-            </ul>\n
-          </div>\n
-        </td>\n
-      </tal:block>\n
-    </tr>\n
-  </table>\n
+  <tal:block metal:use-macro="context/ERP5Site_renderActionList/macros/table"/>\n
 </tal:block>\n
 
 

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderDocumentSearchActionList.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderDocumentSearchActionList.xml?rev=35127&r1=35126&r2=35127&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderDocumentSearchActionList.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderDocumentSearchActionList.xml [utf8] Mon May 10 12:01:14 2010
@@ -40,56 +40,13 @@
             <value> <string encoding="cdata"><![CDATA[
 
 <tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n
-           xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n
-           i18n:domain="ui"\n
-           tal:define="info_dict here/ERP5Site_getCategorizedModuleActionInformationDict;\n
+           xmlns:metal="http://xml.zope.org/namespaces/metal"\n
+           tal:define="info_dict context/ERP5Site_getCategorizedModuleActionInformationDict;\n
                        module_category_list info_dict/search;\n
                        dummy python:module_category_list.sort();\n
                        dummy python: request.RESPONSE.setHeader(\'Content-Type\', \n
                                                                 \'text/html;; charset=utf-8\');">\n
-  <table tal:define="max_per_line python: 4;\n
-         cell_number python: len(module_category_list);\n
-         row_number python: (cell_number/max_per_line+1)">\n
-    <tr tal:repeat="row python: xrange(row_number)">\n
-      <tal:block tal:repeat="module_category python: module_category_list[(row*max_per_line):((row+1)*max_per_line)]">\n
-        <td>\n
-          <div style="width:25%; min-width:150px; float:left; white-space:nowrap;"\n
-              class="tabbertabcont"\n
-              tal:define="module_list python:module_category[1]">\n
-            <ul style="list-style-type:none; padding-left:10px;"\n
-                tal:condition="python:module_list">\n
-              <li style="font-weight:bold; color:#002e3f;" i18n:translate=""\n
-                  tal:content="python:module_category[0]" />\n
-              <ul style="list-style-type:none; padding-left:0;">\n
-                <tal:block tal:repeat="module module_list">\n
-                  <tal:block tal:define="action_list python:module[1];\n
-                                        default_action python:test(len(action_list) > 1, None, action_list[0])"\n
-                            tal:condition="python:action_list">\n
-                    <li style="color:#002e3f;">\n
-                      <span style="color:#002e3f;" i18n:translate=""\n
-                            tal:condition="not:default_action"\n
-                            tal:content="python:module[0]"></span>\n
-                      <a tal:condition="default_action" i18n:translate=""\n
-                        tal:content="python:module[0]"\n
-                        tal:attributes="href python:default_action[1]"></a>\n
-                    </li>\n
-                    <ul tal:condition="not:default_action"\n
-                        style="list-style-type:none; padding-left:15px;">\n
-                      <li tal:repeat="action action_list">\n
-                        <a style="color:#3d7474" i18n:translate=""\n
-                          tal:content="python:action[0]"\n
-                          tal:attributes="href python:action[1]"></a>\n
-                      </li>\n
-                    </ul>\n
-                  </tal:block>\n
-                </tal:block>\n
-              </ul>\n
-            </ul>\n
-          </div>\n
-        </td>\n
-      </tal:block>\n
-    </tr>\n
-  </table>\n
+  <tal:block metal:use-macro="context/ERP5Site_renderActionList/macros/table"/>\n
 </tal:block>\n
 
 

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderExchangeActionList.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderExchangeActionList.xml?rev=35127&r1=35126&r2=35127&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderExchangeActionList.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderExchangeActionList.xml [utf8] Mon May 10 12:01:14 2010
@@ -40,56 +40,13 @@
             <value> <string encoding="cdata"><![CDATA[
 
 <tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n
-           xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n
-           i18n:domain="ui"\n
-           tal:define="info_dict here/ERP5Site_getCategorizedModuleActionInformationDict;\n
+           xmlns:metal="http://xml.zope.org/namespaces/metal"\n
+           tal:define="info_dict context/ERP5Site_getCategorizedModuleActionInformationDict;\n
                        module_category_list info_dict/exchange;\n
                        dummy python:module_category_list.sort();\n
                        dummy python: request.RESPONSE.setHeader(\'Content-Type\', \n
                                                                 \'text/html;; charset=utf-8\');">\n
-  <table tal:define="max_per_line python: 4;\n
-         cell_number python: len(module_category_list);\n
-         row_number python: (cell_number/max_per_line+1)">\n
-    <tr tal:repeat="row python: xrange(row_number)">\n
-      <tal:block tal:repeat="module_category python: module_category_list[(row*max_per_line):((row+1)*max_per_line)]">\n
-        <td>\n
-        <div style="width:25%; min-width:150px; float:left;"\n
-            class="tabbertabcont"\n
-            tal:define="module_list python:module_category[1]">\n
-          <ul style="list-style-type:none; padding-left:10px; white-space:nowrap;"\n
-              tal:condition="python:module_list">\n
-            <li style="font-weight:bold; color:#002e3f;" i18n:translate=""\n
-                tal:content="python:module_category[0]" />\n
-            <ul style="list-style-type:none; padding-left:0;">\n
-              <tal:block tal:repeat="module module_list">\n
-                <tal:block tal:define="action_list python:module[1];\n
-                                      default_action python:test(len(action_list) > 1, None, action_list[0])"\n
-                          tal:condition="python:action_list">\n
-                  <li style="color:#002e3f;">\n
-                    <span style="color:#002e3f;" i18n:translate=""\n
-                          tal:condition="not:default_action"\n
-                          tal:content="python:module[0]"></span>\n
-                    <a tal:condition="default_action" i18n:translate=""\n
-                      tal:content="python:module[0]"\n
-                      tal:attributes="href python:default_action[1]"></a>\n
-                  </li>\n
-                  <ul tal:condition="not:default_action"\n
-                      style="list-style-type:none; padding-left:15px;">\n
-                    <li tal:repeat="action action_list">\n
-                      <a style="color:#3d7474" i18n:translate=""\n
-                        tal:content="python:action[0]"\n
-                        tal:attributes="href python:action[1]"></a>\n
-                    </li>\n
-                  </ul>\n
-                </tal:block>\n
-              </tal:block>\n
-            </ul>\n
-          </ul>\n
-        </div>\n
-      </td>\n
-    </tal:block>\n
-    </tr>\n
-  </table>\n
+  <tal:block metal:use-macro="context/ERP5Site_renderActionList/macros/table"/>\n
 </tal:block>\n
 
 

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderPrintActionList.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderPrintActionList.xml?rev=35127&r1=35126&r2=35127&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderPrintActionList.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderPrintActionList.xml [utf8] Mon May 10 12:01:14 2010
@@ -40,56 +40,13 @@
             <value> <string encoding="cdata"><![CDATA[
 
 <tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n
-           xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n
-           i18n:domain="ui"\n
-           tal:define="info_dict here/ERP5Site_getCategorizedModuleActionInformationDict;\n
+           xmlns:metal="http://xml.zope.org/namespaces/metal"\n
+           tal:define="info_dict context/ERP5Site_getCategorizedModuleActionInformationDict;\n
                        module_category_list info_dict/print;\n
                        dummy python:module_category_list.sort();\n
                        dummy python: request.RESPONSE.setHeader(\'Content-Type\', \n
                                                                 \'text/html;; charset=utf-8\');">\n
-  <table tal:define="max_per_line python: 4;\n
-         cell_number python: len(module_category_list);\n
-         row_number python: (cell_number/max_per_line+1)">\n
-    <tr tal:repeat="row python: xrange(row_number)">\n
-      <tal:block tal:repeat="module_category python: module_category_list[(row*max_per_line):((row+1)*max_per_line)]">\n
-        <td>\n
-        <div style="width:25%; min-width:150px; float:left; white-space:nowrap;"\n
-            class="tabbertabcont"\n
-            tal:define="module_list python:module_category[1]">\n
-          <ul style="list-style-type:none; padding-left:10px;"\n
-              tal:condition="python:module_list">\n
-            <li style="font-weight:bold; color:#002e3f;" i18n:translate=""\n
-                tal:content="python:module_category[0]" />\n
-            <ul style="list-style-type:none; padding-left:0;">\n
-              <tal:block tal:repeat="module module_list">\n
-                <tal:block tal:define="action_list python:module[1];\n
-                                      default_action python:test(len(action_list) > 1, None, action_list[0])"\n
-                          tal:condition="python:action_list">\n
-                  <li style="color:#002e3f;">\n
-                    <span style="color:#002e3f;" i18n:translate=""\n
-                          tal:condition="not:default_action"\n
-                          tal:content="python:module[0]"></span>\n
-                    <a tal:condition="default_action" i18n:translate=""\n
-                      tal:content="python:module[0]"\n
-                      tal:attributes="href python:default_action[1]"></a>\n
-                  </li>\n
-                  <ul tal:condition="not:default_action"\n
-                      style="list-style-type:none; padding-left:15px;">\n
-                    <li tal:repeat="action action_list">\n
-                      <a style="color:#3d7474" i18n:translate=""\n
-                        tal:content="python:action[0]"\n
-                        tal:attributes="href python:action[1]"></a>\n
-                    </li>\n
-                  </ul>\n
-                </tal:block>\n
-              </tal:block>\n
-            </ul>\n
-          </ul>\n
-        </div>\n
-      </td>\n
-    </tal:block>\n
-    </tr>\n
-  </table>\n
+  <tal:block metal:use-macro="context/ERP5Site_renderActionList/macros/table"/>\n
 </tal:block>\n
 
 

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderReportActionList.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderReportActionList.xml?rev=35127&r1=35126&r2=35127&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderReportActionList.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderReportActionList.xml [utf8] Mon May 10 12:01:14 2010
@@ -40,56 +40,13 @@
             <value> <string encoding="cdata"><![CDATA[
 
 <tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n
-           xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n
-           i18n:domain="ui"\n
-           tal:define="info_dict here/ERP5Site_getCategorizedModuleActionInformationDict;\n
+           xmlns:metal="http://xml.zope.org/namespaces/metal"\n
+           tal:define="info_dict context/ERP5Site_getCategorizedModuleActionInformationDict;\n
                        module_category_list info_dict/report;\n
                        dummy python:module_category_list.sort();\n
                        dummy python: request.RESPONSE.setHeader(\'Content-Type\', \n
                                                        \'text/html;; charset=utf-8\');">\n
-  <table tal:define="max_per_line python: 4;\n
-         cell_number python: len(module_category_list);\n
-         row_number python: (cell_number/max_per_line+1)">\n
-    <tr tal:repeat="row python: xrange(row_number)">\n
-      <tal:block tal:repeat="module_category python: module_category_list[(row*max_per_line):((row+1)*max_per_line)]">\n
-        <td>\n
-        <div style="width:25%; min-width:150px; float:left;"\n
-            class="tabbertabcont"\n
-            tal:define="module_list python:module_category[1]">\n
-          <ul style="list-style-type:none; padding-left:10px; white-space:nowrap;"\n
-              tal:condition="python:module_list">\n
-            <li style="font-weight:bold; color:#002e3f;" i18n:translate=""\n
-                tal:content="python:module_category[0]" />\n
-            <ul style="list-style-type:none; padding-left:0;">\n
-              <tal:block tal:repeat="module module_list">\n
-                <tal:block tal:define="action_list python:module[1];\n
-                                      default_action python:test(len(action_list) > 1, None, action_list[0])"\n
-                          tal:condition="python:action_list">\n
-                  <li style="color:#002e3f;">\n
-                    <span style="color:#002e3f;"\n
-                          tal:condition="not:default_action"\n
-                          tal:content="python:module[0]"></span>\n
-                    <a tal:condition="default_action"\n
-                      tal:content="python:module[0]"\n
-                      tal:attributes="href python:default_action[1]"></a>\n
-                  </li>\n
-                  <ul tal:condition="not:default_action"\n
-                      style="list-style-type:none; padding-left:15px;">\n
-                    <li tal:repeat="action action_list">\n
-                      <a style="color:#3d7474" \n
-                        tal:content="python:action[0]"\n
-                        tal:attributes="href python:action[1]"></a>\n
-                    </li>\n
-                  </ul>\n
-                </tal:block>\n
-              </tal:block>\n
-            </ul>\n
-          </ul>\n
-        </div>\n
-      </td>\n
-    </tal:block>\n
-    </tr>\n
-  </table>\n
+  <tal:block metal:use-macro="context/ERP5Site_renderActionList/macros/table"/>\n
 </tal:block>\n
 
 

Modified: erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderViewActionList.xml
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderViewActionList.xml?rev=35127&r1=35126&r2=35127&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderViewActionList.xml [utf8] (original)
+++ erp5/trunk/products/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_access_tab/ERP5Site_renderViewActionList.xml [utf8] Mon May 10 12:01:14 2010
@@ -40,39 +40,13 @@
             <value> <string encoding="cdata"><![CDATA[
 
 <tal:block xmlns:tal="http://xml.zope.org/namespaces/tal"\n
-           xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n
-           i18n:domain="ui"\n
-           tal:define="info_dict here/ERP5Site_getCategorizedModuleActionInformationDict;\n
+           xmlns:metal="http://xml.zope.org/namespaces/metal"\n
+           tal:define="info_dict context/ERP5Site_getCategorizedModuleActionInformationDict;\n
                        module_category_list info_dict/view;\n
                        dummy python:module_category_list.sort();\n
                        dummy python: request.RESPONSE.setHeader(\'Content-Type\', \n
                                                        \'text/html;; charset=utf-8\');">\n
-  <table tal:define="max_per_line python: 4;\n
-                     cell_number python: len(module_category_list);\n
-                     row_number python: (cell_number/max_per_line+1)">\n
-    <tr tal:repeat="row python: xrange(row_number)">\n
-      <tal:block tal:repeat="module_category python: module_category_list[(row*max_per_line):((row+1)*max_per_line)]">\n
-        <td>\n
-          <div style="width:25%; min-width:150px; float:left; white-space: nowrap;"\n
-              tal:define="module_list python:module_category[1]">\n
-            <ul style="list-style-type:none; padding-left:10px;">\n
-              <li style="font-weight:bold; color:#002e3f;"\n
-                  i18n:translate=""\n
-                  tal:content="python:module_category[0]"/>\n
-              <ul style="list-style-type:none; padding-left:0;">\n
-                <tal:block tal:repeat="module module_list">\n
-                  <li style="color:#002e3f;">\n
-                    <a tal:content="python:module[0]"\n
-                       tal:attributes="href python:module[1][0][1]"></a>\n
-                  </li>\n
-                </tal:block>\n
-              </ul>\n
-            </ul>\n
-          </div>\n
-        </td>\n
-      </tal:block>\n
-    </tr>\n
-  </table>\n
+  <tal:block metal:use-macro="context/ERP5Site_renderActionList/macros/table"/>\n
 </tal:block>\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=35127&r1=35126&r2=35127&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] Mon May 10 12:01:14 2010
@@ -1,1 +1,1 @@
-940
+941




More information about the Erp5-report mailing list