Commit d4d11752 authored by Romain Courteaud's avatar Romain Courteaud

Display version on Document's popup

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26160 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent dd99c675
...@@ -97,6 +97,11 @@ try:\n ...@@ -97,6 +97,11 @@ try:\n
except AttributeError:\n except AttributeError:\n
pass\n pass\n
\n \n
try:\n
doc_info[\'version\'] = context.getVersion() or \'\'\n
except AttributeError:\n
pass\n
\n
# add web sections document belongs too\n # add web sections document belongs too\n
if website is None:\n if website is None:\n
website = context.getWebSiteValue() \n website = context.getWebSiteValue() \n
......
...@@ -46,7 +46,8 @@ ...@@ -46,7 +46,8 @@
status python: options.get(\'status\', None);\n status python: options.get(\'status\', None);\n
group python: options.get(\'group\', None);\n group python: options.get(\'group\', None);\n
project python: options.get(\'project\', 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 \n
<div class="popup_row" tal:condition="owner">\n <div class="popup_row" tal:condition="owner">\n
<span class="popup_label" \n <span class="popup_label" \n
...@@ -82,6 +83,12 @@ ...@@ -82,6 +83,12 @@
<span class="popup_label" \n <span class="popup_label" \n
i18n:translate="" i18n:domain="ui">Language:</span>\n i18n:translate="" i18n:domain="ui">Language:</span>\n
<tal:block tal:replace="language|nothing"/>\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 </div> \n
\n \n
<div class="popup_row" tal:condition="group">\n <div class="popup_row" tal:condition="group">\n
...@@ -96,14 +103,27 @@ ...@@ -96,14 +103,27 @@
<tal:block tal:replace="project|nothing"/>\n <tal:block tal:replace="project|nothing"/>\n
</div>\n </div>\n
\n \n
</tal:block> </tal:block>\n
]]></string> </value> ]]></string> </value>
</item> </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> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>Document_viewPopupTemplate</string> </value> <value> <string>Document_viewPopupTemplate</string> </value>
</item> </item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
......
767 768
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment