From 3175702a407a0d07ad804f5a99466f62ffb56dd3 Mon Sep 17 00:00:00 2001
From: Ivan Tyagov <ivan@nexedi.com>
Date: Thu, 22 Jan 2009 15:32:54 +0000
Subject: [PATCH] Extend pop up template to show sections if provided.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25272 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../Document_viewPopupTemplate.xml                   | 12 +++++++++++-
 bt5/erp5_web/bt/revision                             |  2 +-
 2 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/Document_viewPopupTemplate.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/Document_viewPopupTemplate.xml
index f089ccc8ec..87ea3c66c2 100644
--- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/Document_viewPopupTemplate.xml
+++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web_widget_library/Document_viewPopupTemplate.xml
@@ -46,7 +46,8 @@
                        status python: options.get(\'status\', None);\n
                        group python: options.get(\'group\', None);\n
                        project python: options.get(\'project\', None);\n
-                       language python: options.get(\'language\', None);">\n
+                       language python: options.get(\'language\', None);\n
+                       sections python: options.get(\'sections\', None)">\n
   \n
   <div class="popup_row" tal:condition="owner">\n
     <span class="popup_label" \n
@@ -96,6 +97,15 @@
     <tal:block tal:replace="project|nothing"/>\n
   </div>\n
     \n
+  <div class="popup_row" tal:condition="sections">\n
+    <span class="popup_label" \n
+          i18n:translate="" i18n:domain="ui">Sections:</span>\n
+    <tal:block tal:repeat="section sections">\n
+      <a tal:attributes="href section/url" \n
+         tal:content="section/title"/>\n
+    </tal:block>\n
+  </div>\n
+\n
 </tal:block>
 
 ]]></string> </value>
diff --git a/bt5/erp5_web/bt/revision b/bt5/erp5_web/bt/revision
index 18af9bab1a..c71057571f 100644
--- a/bt5/erp5_web/bt/revision
+++ b/bt5/erp5_web/bt/revision
@@ -1 +1 @@
-731
\ No newline at end of file
+732
\ No newline at end of file
-- 
2.30.9