Commit 87b95977 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

display attachment's filename and content_type in Event view.

now it is filename, not file_name.
parent 86c5ce7e
...@@ -36,16 +36,11 @@ ...@@ -36,16 +36,11 @@
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <unicode encoding="cdata"><![CDATA[ <value> <unicode encoding="cdata"><![CDATA[
<tal:block tal:define="information_list here/getAttachmentInformationList | python:\n <tal:block tal:define="information_list here/getAttachmentInformationList">\n
[{\'To\': \'erp5-report@erp5.org\', \'uid\': \'part_0\', \'index\': 0}, \n
{\'index\': 2, \'uid\': \'part_2\', \'Content-Transfer-Encoding\': \'7bit\', \'MIME-Version\': \'1.0\'}, \n
{\'index\': 3, \'uid\': \'part_3\', \'Content-Disposition\': \'inline\', \'Content-Transfer-Encoding\': \'7bit\', \'MIME-Version\': \'1.0\'}]">\n
\n
<ul>\n <ul>\n
<li tal:repeat="information information_list">\n <li tal:repeat="information information_list">\n
<tal:block tal:condition="python:1">\n <a tal:content="information/filename | information/uid" tal:attributes="href python:\'getAttachmentData?index:int=%s\' % information[\'index\']"/>\n
<a tal:content="information/file_name | information/uid" tal:attributes="href python:\'getAttachmentData?index:int=%s\' % information[\'index\']"/>\n (<tal:block tal:content="information/content_type" />)\n
</tal:block>\n
</li>\n </li>\n
</ul>\n </ul>\n
</tal:block> </tal:block>
......
659 660
\ 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