[FIX] doc: remaining instances of ruby-style interpolation in templates
authorXavier Morel <xmo@odoo.com>
Wed, 3 Dec 2014 13:20:51 +0000 (14:20 +0100)
committerXavier Morel <xmo@odoo.com>
Wed, 3 Dec 2014 13:21:00 +0000 (14:21 +0100)
fixes #3157

doc/howtos/backend/exercise-creation
doc/howtos/backend/exercise-kanban
doc/howtos/web.rst

index 0fdb3e3..4b780bd 100644 (file)
@@ -133,7 +133,7 @@ Index: addons/openacademy/templates.xml
 +        <!-- <template id="listing"> -->
 +        <!--   <ul> -->
 +        <!--     <li t-foreach="objects" t-as="object"> -->
-+        <!--       <a t-attf-href="#{ root }/objects/#{ object.id }"> -->
++        <!--       <a t-attf-href="{{ root }}/objects/{{ object.id }}"> -->
 +        <!--         <t t-esc="object.display_name"/> -->
 +        <!--       </a> -->
 +        <!--     </li> -->
index 892ef6e..7d69770 100644 (file)
@@ -30,9 +30,9 @@ Index: addons/openacademy/views/openacademy.xml
 +                    <templates>
 +                        <t t-name="kanban-box">
 +                            <div
-+                                    t-attf-class="oe_kanban_color_#{kanban_getcolor(record.color.raw_value)}
++                                    t-attf-class="oe_kanban_color_{{kanban_getcolor(record.color.raw_value)}}
 +                                                  oe_kanban_global_click_edit oe_semantic_html_override
-+                                                  oe_kanban_card #{record.group_fancy==1 ? 'oe_kanban_card_fancy' : ''}">
++                                                  oe_kanban_card {{record.group_fancy==1 ? 'oe_kanban_card_fancy' : ''}}">
 +                                <div class="oe_dropdown_kanban">
 +                                    <!-- dropdown menu -->
 +                                    <div class="oe_dropdown_toggle">
index 8dc89d8..ba8337f 100644 (file)
@@ -1742,7 +1742,7 @@ attributes are:
             <t t-name="PetToy">
                 <div class="oe_petstore_pettoy" t-att-data-id="item.id">
                     <p><t t-esc="item.name"/></p>
-                    <p><img t-attf-src="data:image/jpg;base64,#{item.image}"/></p>
+                    <p><img t-attf-src="data:image/jpg;base64,{{item.image}}"/></p>
                 </div>
             </t>