summaryrefslogtreecommitdiff
path: root/addons/web/static/src/xml/base.xml
diff options
context:
space:
mode:
authorFabien Meghazi <fme@openerp.com>2011-12-19 18:37:22 +0100
committerFabien Meghazi <fme@openerp.com>2011-12-19 18:37:22 +0100
commit861ad62c2243cba1d315a14b7d0f1bfc3b99996c (patch)
tree35df06125ddfe598feb151322e1c483b56df85ab /addons/web/static/src/xml/base.xml
parent5058bfd6bfecc2294a7d8d97b457fd607ceb7fba (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.xml4
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>