[FIX] block-level link, incompatible with RTE
authorXavier Morel <xmo@openerp.com>
Thu, 19 Sep 2013 12:15:41 +0000 (14:15 +0200)
committerXavier Morel <xmo@openerp.com>
Thu, 19 Sep 2013 12:15:41 +0000 (14:15 +0200)
bzr revid: xmo@openerp.com-20130919121541-mj2l9o8wmxmk2l9v

addons/website_sale/views/website_sale.xml

index 3043fc8..650890d 100644 (file)
                 <div class='row mt16' style="margin-left: 15px !important;">
                 <t t-foreach="product.recommended_products()" t-as="product">
                     <div class='col-md-2 thumbnail' style='width: 170px; margin-right: 16px;'>
-                        <a t-attf-href="/shop/product/#{ product.id }/">
-                            <div class='mt16 text-center'>
-                                <img t-att-src="product.img('image_small')"/>
-                                <h5 t-field='product.name'></h5>
-                            </div>
-                        </a>
+                        <div class='mt16 text-center'>
+                            <img t-att-src="product.img('image_small')"/>
+                            <h5>
+                                <a t-attf-href="/shop/product/#{ product.id }/"
+                                   style="display: block">
+                                    <span t-field='product.name'
+                                          style="display: block"/>
+                                </a>
+                            </h5>
+                        </div>
                     </div>
                 </t>
                 </div>