diff options
| author | Fabien Meghazi <fme@openerp.com> | 2011-12-19 18:37:22 +0100 |
|---|---|---|
| committer | Fabien Meghazi <fme@openerp.com> | 2011-12-19 18:37:22 +0100 |
| commit | 861ad62c2243cba1d315a14b7d0f1bfc3b99996c (patch) | |
| tree | 35df06125ddfe598feb151322e1c483b56df85ab /addons/web/static/src/xml/base.xml | |
| parent | 5058bfd6bfecc2294a7d8d97b457fd607ceb7fba (diff) | |
[IMP] Refactor view switcher button
bzr revid: fme@openerp.com-20111219173722-wjtsg2uqux5iut2j
Diffstat (limited to 'addons/web/static/src/xml/base.xml')
| -rw-r--r-- | addons/web/static/src/xml/base.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/xml/base.xml b/addons/web/static/src/xml/base.xml index 271ad5d72b7..e425d701a5b 100644 --- a/addons/web/static/src/xml/base.xml +++ b/addons/web/static/src/xml/base.xml @@ -424,8 +424,8 @@ <div class="oe_vm_switch"> <t t-if="views.length != 1" t-foreach="views" t-as="view"> - <button type="button" t-att-data-view-type="view.view_type" t-att-title="view.view_type"> - + <button type="button" t-attf-class="oe_vm_switch_#{view.view_type}" t-att-data-view-type="view.view_type" t-att-title="view.view_type"> + <span><t t-esc="view.label || view.view_type"/></span> </button> </t> </div> |
