[Erp5-report] r44278 ivan - in /erp5/trunk/bt5/erp5_web: SkinTemplateItem/portal_skins/erp5...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Mar 15 09:51:12 CET 2011


Author: ivan
Date: Tue Mar 15 09:51:12 2011
New Revision: 44278

URL: http://svn.erp5.org?rev=44278&view=rev
Log:
Leave HTML generation to page template.

Modified:
    erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Document_getPopupInfo.xml
    erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/Document_viewPopupTemplate.xml
    erp5/trunk/bt5/erp5_web/bt/revision

Modified: erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Document_getPopupInfo.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Document_getPopupInfo.xml?rev=44278&r1=44277&r2=44278&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Document_getPopupInfo.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Document_getPopupInfo.xml [utf8] Tue Mar 15 09:51:12 2011
@@ -12,7 +12,9 @@
         </item>
         <item>
             <key> <string>_Cacheable__manager_id</string> </key>
-            <value> <string>http_cache</string> </value>
+            <value>
+              <none/>
+            </value>
         </item>
         <item>
             <key> <string>_bind_names</string> </key>
@@ -60,10 +62,8 @@
 """\n
 from zExceptions import Unauthorized\n
 \n
-translateString = context.Base_translateString\n
 doc_info = {}\n
-owner_list = context.Base_getOwnerInfoList()\n
-doc_info[\'owner\'] = \'; \'.join([owner[\'title\'] for owner in owner_list])\n
+doc_info[\'owner_list\'] = context.Base_getOwnerInfoList()\n
 \n
 if context.getModificationDate() is not None:\n
   doc_info[\'modification_date\'] = context.WebSite_getFancyRelativeDate(context.getModificationDate())\n
@@ -119,6 +119,7 @@ for websection in website.getWebSectionV
   sections.append({\'title\': websection.getCompactTranslatedTitle(),\n
                    \'url\': websection.absolute_url()})\n
 doc_info[\'sections\'] = sections\n
+doc_info[\'url\'] = context.absolute_url()\n
 \n
 return context.Document_viewPopupTemplate(**doc_info)\n
 </string> </value>

Modified: erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/Document_viewPopupTemplate.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/Document_viewPopupTemplate.xml?rev=44278&r1=44277&r2=44278&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/Document_viewPopupTemplate.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/Document_viewPopupTemplate.xml [utf8] Tue Mar 15 09:51:12 2011
@@ -36,7 +36,7 @@
             <key> <string>_text</string> </key>
             <value> <unicode encoding="cdata"><![CDATA[
 
-<tal:block tal:define="owner python: options.get(\'owner\', None);\n
+<tal:block tal:define="owner_list python: options.get(\'owner_list\', None);\n
                        modification_date python: options.get(\'modification_date\', None);\n
                        release_date python: options.get(\'release_date\', None);\n
                        publication_date python: options.get(\'publication_date\', None);\n
@@ -47,20 +47,57 @@
                        language python: options.get(\'language\', None);\n
                        version python: options.get(\'version\', None);\n
                        thumbnail_url python: options.get(\'thumbnail_url\', None);\n
+                       url python: options.get(\'url\', None);\n
+                       sections python: options.get(\'sections\', None);\n
                        format python: request.get(\'format\', context.portal_preferences.getPreference(\'preferred_image_format\', \'png\'));\n
                        quality python: request.get(\'format\', context.portal_preferences.getPreference(\'preferred_image_quality\', \'75.0\'))">\n
 \n
+  <span id="listbox-preview-connector"></span>\n
+\n
   <div class="popup_row" tal:condition="thumbnail_url">\n
-    <img alt="Thumbnail" \n
+    <a tal:attributes="href url">\n
+      <img alt="Thumbnail" \n
          i18n:translate="alt" i18n:domain="ui"\n
          tal:attributes="src string:${thumbnail_url}?display=thumbnail&amp;format=${format}&amp;quality=${quality}"/>\n
+    </a>\n
+  </div>\n
+\n
+  <div class="popup_row" tal:condition="reference">    \n
+    <span class="popup_label" \n
+          i18n:translate="" i18n:domain="ui">Reference:</span>\n
+    <span class="reference"\n
+          tal:content="reference|nothing"/>\n
+  </div>\n
+\n
+  <div class="popup_row" tal:condition="version">    \n
+    <span class="popup_label" \n
+          i18n:translate="" i18n:domain="ui">Version:</span>\n
+    <span class="version"\n
+          tal:content="version|nothing"/>\n
+  </div>\n
+\n
+  <div class="popup_row" tal:condition="language">    \n
+    <span class="popup_label" \n
+          i18n:translate="" i18n:domain="ui">Language:</span>\n
+    <span class="language"\n
+          tal:content="language|nothing"/>\n
+  </div>  \n
+    \n
+  <div class="popup_row" tal:condition="project">\n
+    <span class="popup_label " \n
+          i18n:translate="" i18n:domain="ui">Project:</span>\n
+    <span class="project"\n
+          tal:content="project|nothing"/>\n
   </div>\n
   \n
-  <div class="popup_row" tal:condition="owner">\n
+  <div class="popup_row" tal:condition="owner_list">\n
     <span class="popup_label" \n
-          i18n:translate="" i18n:domain="ui">Owners:</span>\n
-    <span class="owner" \n
-          tal:content="owner|nothing"/>\n
+          i18n:translate="" i18n:domain="ui">Owner:</span>\n
+    <span tal:repeat="owner owner_list"\n
+          class="owner">\n
+      <a tal:attributes="href owner/url"\n
+         tal:content="owner/title"/>\n
+    </span>\n
   </div> \n
   \n
   <div class="popup_row" tal:condition="modification_date">\n
@@ -83,49 +120,24 @@
     <span class="publication_date"\n
           tal:content="publication_date|nothing"/>\n
   </div>\n
-  \n
-  <div class="popup_row" tal:condition="status">    \n
-    <span class="popup_label" \n
-          i18n:translate="" i18n:domain="ui">Status:</span>\n
-    <span class="status"\n
-          tal:content="status|nothing"/>\n
-  </div>\n
 \n
-  <div class="popup_row" tal:condition="reference">    \n
+  <div class="popup_row" tal:condition="sections">  \n
     <span class="popup_label" \n
-          i18n:translate="" i18n:domain="ui">Reference:</span>\n
-    <span class="reference"\n
-          tal:content="reference|nothing"/>\n
+          i18n:translate="" i18n:domain="ui">Section:</span>\n
+    <span tal:repeat="section sections"\n
+          class="section">\n
+      <a tal:attributes="href section/url"\n
+         tal:content="section/title"/>\n
+    </span>\n
   </div>\n
-\n
-  <div class="popup_row" tal:condition="language">    \n
-    <span class="popup_label" \n
-          i18n:translate="" i18n:domain="ui">Language:</span>\n
-    <span class="language"\n
-          tal:content="language|nothing"/>\n
-  </div>  \n
-    \n
-  <div class="popup_row" tal:condition="version">    \n
-    <span class="popup_label" \n
-          i18n:translate="" i18n:domain="ui">Version:</span>\n
-    <span class="version"\n
-          tal:content="version|nothing"/>\n
-  </div>  \n
   \n
-  <div class="popup_row" tal:condition="group">\n
+  <div class="popup_row" tal:condition="status">    \n
     <span class="popup_label" \n
-          i18n:translate="" i18n:domain="ui">Group:</span>\n
-    <span class="group"\n
-          tal:content="group|nothing"/>\n
-  </div>\n
-    \n
-  <div class="popup_row" tal:condition="project">\n
-    <span class="popup_label " \n
-          i18n:translate="" i18n:domain="ui">Project:</span>\n
-    <span class="project"\n
-          tal:content="project|nothing"/>\n
+          i18n:translate="" i18n:domain="ui">State:</span>\n
+    <span tal:attributes="class python:\'%s-state\' %status.lower()"\n
+          tal:content="status|nothing"/>\n
   </div>\n
-    \n
+   \n
 </tal:block>
 
 ]]></unicode> </value>

Modified: erp5/trunk/bt5/erp5_web/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_web/bt/revision?rev=44278&r1=44277&r2=44278&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_web/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_web/bt/revision [utf8] Tue Mar 15 09:51:12 2011
@@ -1 +1 @@
-1032
\ No newline at end of file
+1035
\ No newline at end of file



More information about the Erp5-report mailing list