summaryrefslogtreecommitdiff
path: root/addons/im/static/src/xml/im_common.xml
diff options
context:
space:
mode:
authorVidhin Mehta <vme@tinyerp.com>2013-08-23 10:36:02 +0530
committerVidhin Mehta <vme@tinyerp.com>2013-08-23 10:36:02 +0530
commit75ddd5ccbec73c4a671b6a74efaa3d41dc2ea2db (patch)
tree50ed3620df15e8533760f5d47e754a1d39c1e856 /addons/im/static/src/xml/im_common.xml
parent42f27a15275effd9c43dfe99e32c395ca6b3fd8a (diff)
parenta7f4b6aaa0359d12046e81183417c24f093cd7c3 (diff)
[MERGE]Trunk.
bzr revid: vme@tinyerp.com-20130823050602-33bqv07e7g8dhv7x
Diffstat (limited to 'addons/im/static/src/xml/im_common.xml')
-rw-r--r--addons/im/static/src/xml/im_common.xml36
1 files changed, 36 insertions, 0 deletions
diff --git a/addons/im/static/src/xml/im_common.xml b/addons/im/static/src/xml/im_common.xml
new file mode 100644
index 00000000000..4286d0c9710
--- /dev/null
+++ b/addons/im/static/src/xml/im_common.xml
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<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.user.get('name')"/>
+ <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.user.get("name") + _t(" is offline. He/She will receive your messages on his/her next connection.")'/>
+ </div>
+ <div class="oe_im_chatview_content">
+ <div></div>
+ </div>
+ <div class="oe_im_chatview_footer">
+ <input class="oe_im_chatview_input" t-att-placeholder="widget.inputPlaceholder" />
+ </div>
+</t>
+
+<t t-name="im_common.conversation_bubble">
+ <div class="oe_im_chatview_bubble">
+ <div class="oe_im_chatview_clip">
+ <img class="oe_im_chatview_avatar" t-att-src="user.get('image_url')"/>
+ </div>
+ <div class="oe_im_chatview_from"><t t-esc="user.get('name')"/></div>
+ <div class="oe_im_chatview_bubble_list">
+ <t t-foreach="items" t-as="item">
+ <div class="oe_im_chatview_bubble_item"><t t-esc="item"/></div>
+ </t>
+ </div>
+ <div class="oe_im_chatview_time"><t t-esc="time"/></div>
+ </div>
+</t>
+</templates> \ No newline at end of file