diff options
| author | Christophe Matthieu <chm@odoo.com> | 2015-08-21 10:13:23 +0200 |
|---|---|---|
| committer | Antony Lesuisse <al@openerp.com> | 2015-08-21 22:06:52 +0200 |
| commit | d4bae06d081798e35529c2323b66ec5467545cdb (patch) | |
| tree | bf481d1bce45f6aba21c809bd3264433ff09d284 /addons/web/static/src/xml | |
| parent | 6baf611df1064a3ae5f6368d3a35b3c3d7779543 (diff) | |
[IMP] web: use css to display attachment mimetype
Widgets and website display images or display the type with icon like pdf, doc...
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index dc67b36381e..07bf5b97bd9 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -1013,11 +1013,14 @@ <span class="oe_fileuploader_in_process">...Upload in progress...</span> <t t-raw="file.name || file.filename"/> </span> - <a t-if="(!file.upload or file.percent_loaded>=100)" t-att-href="file.url" t-attf-title="#{(file.name || file.filename) + (file.date?' \n('+file.date+')':'' )}"> - <t t-raw="file.name || file.filename"/> - </a> <t t-if="(!file.upload or file.percent_loaded>=100)"> - <i class="oe_right oe_delete fa fa-times-circle" title="Delete this file" t-attf-data-id="#{file.id}"/> + <a class="o_image" t-att-href="file.url" t-attf-title="#{(file.name || file.filename) + (file.date?' \n('+file.date+')':'' )}" t-att-data-mimetype="file.mimetype" t-attf-data-src="/web/image/#{file.id}/100x80"> + <t t-raw="file.name || file.filename"/> + </a> + <span class="fa fa-stack oe_delete" title="Delete this file" t-attf-data-id="#{file.id}"> + <i class="fa fa-circle fa-stack-1x fa-inverse"></i> + <i class="fa fa-times-circle fa-stack-1x"></i> + </span> </t> </div> </t> |
