[IMP] improve code in mail.xml
authorForam Katharotiya (OpenERP) <fka@tinyerp.com>
Thu, 23 Aug 2012 09:06:16 +0000 (14:36 +0530)
committerForam Katharotiya (OpenERP) <fka@tinyerp.com>
Thu, 23 Aug 2012 09:06:16 +0000 (14:36 +0530)
bzr revid: fka@tinyerp.com-20120823090616-e2ro792wqyywxtt9

addons/mail/static/src/js/mail_followers.js
addons/mail/static/src/xml/mail_followers.xml

index 3ba080e..76280e3 100644 (file)
@@ -141,7 +141,7 @@ openerp_mail_followers = function(session, mail) {
                })
             });
             _(records).each(function (record) {
-                $(session.web.qweb.render('mail.subtype.ids', {'record': record})).appendTo(subtype_list);
+                $(session.web.qweb.render('mail.record_thread.subtype', {'record': record})).appendTo(subtype_list);
             });
         },
             
index 9979aa9..c0cc747 100644 (file)
         <img class="oe_mail_thumbnail oe_mail_frame" t-attf-src="{record.avatar_url}"/>
         <a t-attf-href="#model=res.users&amp;id=#{record.id}"><t t-raw="record.name"/></a>
     </li>
-    <li t-name="mail.subtype.ids">
-      <a t-attf-href="#model=mail.message.subtype&amp;id=#{record.id}"><t t-raw="record.name"/></a>
-      <input type="checkbox" t-att-id="record.id" t-att-name="record.name" class="oe_msg_subtype_check"/>
+    <li t-name="mail.record_thread.subtype">
+        <table width="50%">
+            <tr>
+                <td>
+                    <a t-attf-href="#model=mail.message.subtype&amp;id=#{record.id}"><t t-raw="record.name"/></a>
+                </td>
+                <td width="10%">
+                    <input type="checkbox" t-att-id="record.id" t-att-name="record.name" class="oe_msg_subtype_check"/>
+                </td>
+            </tr>
+        </table>
     </li>
 
 </template>