diff --git a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Document_getPopupInfo.xml b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Document_getPopupInfo.xml index f73bf0f2fe698ebef0520b0e594a6a6037b8ba35..ccf0656cb792d3fd6ee7dd1fab769331c01eb677 100644 --- a/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Document_getPopupInfo.xml +++ b/bt5/erp5_web/SkinTemplateItem/portal_skins/erp5_web/Document_getPopupInfo.xml @@ -97,6 +97,11 @@ try:\n except AttributeError:\n pass\n \n +try:\n + doc_info[\'version\'] = context.getVersion() or \'\'\n +except AttributeError:\n + pass\n +\n # add web sections document belongs too\n if website is None:\n website = context.getWebSiteValue() \n 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 f089ccc8ec20131f304a22494f633e286a09689c..9b8238c0d0cb857aa05afbac927da7c6b5c619c1 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 + version python: options.get(\'version\', None);">\n \n <div class="popup_row" tal:condition="owner">\n <span class="popup_label" \n @@ -82,6 +83,12 @@ <span class="popup_label" \n i18n:translate="" i18n:domain="ui">Language:</span>\n <tal:block tal:replace="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 + <tal:block tal:replace="version|nothing"/>\n </div> \n \n <div class="popup_row" tal:condition="group">\n @@ -96,14 +103,27 @@ <tal:block tal:replace="project|nothing"/>\n </div>\n \n -</tal:block> +</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>Document_viewPopupTemplate</string> </value> </item> + <item> + <key> <string>title</string> </key> + <value> <string></string> </value> + </item> </dictionary> </pickle> </record> diff --git a/bt5/erp5_web/bt/revision b/bt5/erp5_web/bt/revision index 8405587b4b94de3ef29dd2bd00d8296678a135a6..988e00fe6b2996b85c3c171cf2b3bed3e896795a 100644 --- a/bt5/erp5_web/bt/revision +++ b/bt5/erp5_web/bt/revision @@ -1 +1 @@ -767 \ No newline at end of file +768 \ No newline at end of file