diff options
| author | Sébastien Theys <seb@odoo.com> | 2019-08-01 11:20:33 +0000 |
|---|---|---|
| committer | Sébastien Theys <seb@odoo.com> | 2019-08-02 16:47:58 +0000 |
| commit | 58a2ffa26f1a3b0f9630ce16d11b758d18e20a21 (patch) | |
| tree | e737f6abdd166c7da94827de9d968ad2d7478dde /addons/website_livechat/views | |
| parent | 8206b5b4cc92b6befd98ebec7f7ef8af588a9b68 (diff) | |
[IMP] *: rename image fields
image_original => image_1920 (now resized to 1920)
image_big => image_1024
image_large => image_256
image_medium => image_128
image_small => image_64
image replaced by image_1920 (when writing) or by image_1024 (when displaying
what was previously the big size)
+ add new intermediate format:
image_512
PR: #34925
Diffstat (limited to 'addons/website_livechat/views')
| -rw-r--r-- | addons/website_livechat/views/website_livechat.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/website_livechat/views/website_livechat.xml b/addons/website_livechat/views/website_livechat.xml index 2cc0dc35f6f..75e884bdcf1 100644 --- a/addons/website_livechat/views/website_livechat.xml +++ b/addons/website_livechat/views/website_livechat.xml @@ -146,13 +146,13 @@ <h3>The Team</h3> <t t-foreach="team" t-as="user"> <div class="media mt-3"> - <t t-if="user.image_small"> + <t t-if="user.image_64"> <t t-if="user.livechat_username"> - <img t-att-src="user.image_small and image_data_uri(user.image_small) or '/web/static/src/img/placeholder.png'" + <img t-att-src="user.image_64 and image_data_uri(user.image_64) or '/web/static/src/img/placeholder.png'" class="rounded o_livechat_operator_avatar" t-att-alt="user.livechat_username"/> </t> <t t-else=""> - <img t-att-src="user.image_small and image_data_uri(user.image_small) or '/web/static/src/img/placeholder.png'" + <img t-att-src="user.image_64 and image_data_uri(user.image_64) or '/web/static/src/img/placeholder.png'" class="rounded o_livechat_operator_avatar" t-att-alt="user.name"/> </t> </t> @@ -214,7 +214,7 @@ <t t-foreach="channels" t-as="channel"> <div t-attf-class="media#{' mt-3' if channel_index else ''}"> <a t-attf-href="/livechat/channel/#{ slug(channel)}"> - <img t-att-src="channel.image_small and image_data_uri(channel.image_small) or '/web/static/src/img/placeholder.png'" t-att-alt="channel.name" /> + <img t-att-src="channel.image_64 and image_data_uri(channel.image_64) or '/web/static/src/img/placeholder.png'" t-att-alt="channel.name" /> </a> <div class="media-body"> <h4><t t-esc="channel.name"/></h4> |
