diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2013-09-02 18:08:11 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2013-09-02 18:08:11 +0200 |
| commit | ee19c62e0ae57b3c9d3a920218ae99bcd2d1841f (patch) | |
| tree | e1732753ec1095ffbb5d113c285548b2df7ce793 /addons/im/static/src/xml | |
| parent | b4b74f9a208efcffcb0c2e9b8c9c6df7253ded3b (diff) | |
Make group chat really work
bzr revid: nicolas.vanhoren@openerp.com-20130902160811-fkdleeurq1g9msi2
Diffstat (limited to 'addons/im/static/src/xml')
| -rw-r--r-- | addons/im/static/src/xml/im_common.xml | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/addons/im/static/src/xml/im_common.xml b/addons/im/static/src/xml/im_common.xml index 0cf788aab49..fac6a57b146 100644 --- a/addons/im/static/src/xml/im_common.xml +++ b/addons/im/static/src/xml/im_common.xml @@ -3,13 +3,12 @@ <templates> <t t-name="im_common.conversation"> <div class="oe_im_chatview_header"> - <img t-att-src="to_url('/im/static/src/img/green.png')" class="oe_im_chatview_online"/> - <t t-esc="widget.users[0].get('name')"/> + <span class="oe_im_chatview_users"/> <scan class="oe_im_chatview_nbr_messages" /> <button class="oe_im_chatview_close">×</button> </div> <div class="oe_im_chatview_disconnected"> - <t t-esc='widget.users[0].get("name") + _t(" is offline. He/She will receive your messages on his/her next connection.")'/> + All users are offline. They will receive your messages on their next connection. </div> <div class="oe_im_chatview_content"> <div></div> @@ -19,6 +18,13 @@ </div> </t> +<t t-name="im_common.conversation.header"> + <span t-foreach="widget.get('users')" t-as="user"> + <img t-if="user.get('im_status')" t-att-src="to_url('/im/static/src/img/green.png')" class="oe_im_chatview_online"/> + <t t-esc="user.get('name')"/> + </span> +</t> + <t t-name="im_common.conversation_bubble"> <div class="oe_im_chatview_bubble"> <div class="oe_im_chatview_clip"> |
