[IMP] website_mail: follow management is now inside a div
authorThibault Delavallée <tde@openerp.com>
Fri, 11 Oct 2013 13:01:26 +0000 (15:01 +0200)
committerThibault Delavallée <tde@openerp.com>
Fri, 11 Oct 2013 13:01:26 +0000 (15:01 +0200)
because there were issues in blog display.

bzr revid: tde@openerp.com-20131011130126-b2yqz3yvcdwqgqne

addons/website_mail/views/website_mail.xml

index f1618ce..8ed809a 100644 (file)
@@ -3,15 +3,18 @@
     <data>
 
         <template id="follow">
-            <a href="#" t-att-data-id="object.id" t-att-data-object="object._name" t-att-data-follow="object.id and object.message_is_follower and 'on' or 'off'" class="pull-right js_follow" t-if="editable" t-ignore="true">
-                <span t-attf-class="label label-success css_follow">Follow</span>
-                <span t-attf-class="label label-danger css_unfollow">Unfollow</span>
-                <span t-attf-class="label label-success css_followed">Following</span>
-                <span t-attf-class="label label-danger css_unfollowed">Not Following</span>
-            </a>
-            <input type="email" name="email" class="js_follow_email css_unfollowed_email"
-                t-att-value="email"
-                t-att-placeholder="email or 'Email Address'"/>
+            <div name="follow">
+                <a href="#" t-att-data-id="object.id" t-att-data-object="object._name" t-att-data-follow="object.id and object.message_is_follower and 'on' or 'off'"
+                        class="pull-right js_follow" t-if="editable" t-ignore="true">
+                    <span t-attf-class="label label-success css_follow">Follow</span>
+                    <span t-attf-class="label label-danger css_unfollow">Unfollow</span>
+                    <span t-attf-class="label label-success css_followed">Following</span>
+                    <span t-attf-class="label label-danger css_unfollowed">Not Following</span>
+                </a>
+                <input type="email" name="email" class="js_follow_email css_unfollowed_email"
+                    t-att-value="email"
+                    t-att-placeholder="email or 'Email Address'"/>
+            </div>
         </template>
 
         <template id="website.layout" inherit_id="website.layout">