summaryrefslogtreecommitdiff
path: root/addons/mail/static/src/xml/mail.xml
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@openerp.com>2012-11-08 11:05:44 +0100
committerChristophe Matthieu <chm@openerp.com>2012-11-08 11:05:44 +0100
commitd28124c40c2c62fdd796a08d91834d941f564dc2 (patch)
tree448df9120eb93849ff3db1d627bfdd0a9cffa685 /addons/mail/static/src/xml/mail.xml
parentda2bc197c482b67bc824f69538e875b90a9be0d8 (diff)
[REV] mail: remove the python read attachment and update the controleur for image resizing
bzr revid: chm@openerp.com-20121108100544-u4t3k3c43jzwqobh
Diffstat (limited to 'addons/mail/static/src/xml/mail.xml')
-rw-r--r--addons/mail/static/src/xml/mail.xml6
1 files changed, 2 insertions, 4 deletions
diff --git a/addons/mail/static/src/xml/mail.xml b/addons/mail/static/src/xml/mail.xml
index 6805c3473c0..30308564973 100644
--- a/addons/mail/static/src/xml/mail.xml
+++ b/addons/mail/static/src/xml/mail.xml
@@ -83,7 +83,7 @@
</t>
<t t-if="widget.filetype(attachment) === 'webimage'">
<div class='oe_attachment oe_preview'>
- <a t-att-href='attachment.url'><img t-att-src="attachment.url"></img></a>
+ <a t-att-href='attachment.url'><img t-att-src="widget.attachments_resize_image(attachment.id, [100,100])"></img></a>
<div class='oe_delete oe_e'>[</div>
<div class='oe_name'><t t-raw='widget.breakword(attachment.name || attachment.filename)' /></div>
<div class='oe_progress_bar'>
@@ -211,9 +211,7 @@
</div>
<div class="oe_msg_footer">
<t t-if="widget.attachment_ids.length > 0">
- <div class="oe_msg_attachment_list">
- <t t-call="mail.thread.message.attachments"/>
- </div>
+ <div class="oe_msg_attachment_list"></div>
</t>
<a t-if="widget.author_id" t-attf-href="#model=res.partner&amp;id=#{widget.author_id[0]}"><t t-raw="widget.author_id[1]"/></a>
<span class='oe_subtle'>•</span>