[IMP] Improved dashboard styling
authorFabien Meghazi <fme@openerp.com>
Wed, 12 Oct 2011 10:15:04 +0000 (12:15 +0200)
committerFabien Meghazi <fme@openerp.com>
Wed, 12 Oct 2011 10:15:04 +0000 (12:15 +0200)
bzr revid: fme@openerp.com-20111012101504-6xv34uolwizdb7t6

addons/web_dashboard/static/src/css/dashboard.css
addons/web_dashboard/static/src/xml/web_dashboard.xml

index 4d48cd4..54b1cc7 100644 (file)
     -webkit-border-top-right-radius: 3px;
     border-top-right-radius: 3px;
 }
+.openerp h2.oe-dashboard-action-header-empty {
+    padding-top: 0;
+    padding-bottom: 2px;
+}
 
 .openerp a.oe-dashboard-action-rename {
     float: left;
index fe96d72..87222ba 100644 (file)
 </t>
 <t t-name="DashBoard.action">
     <div t-att-data-id="action.attrs.name" class="oe-dashboard-action">
-        <h2 class="oe-dashboard-action-header oe_view_title">
+        <h2 t-attf-class="oe-dashboard-action-header oe_view_title #{action.attrs.string ? '' : 'oe-dashboard-action-header-empty'}">
             <input class="oe-dashboard-action-input" type="text" name="title" value="" style="display: none"/>
             <t t-esc="action.attrs.string"/>
+            <t t-if="!action.attrs.string">&amp;nbsp;</t>
             <span class='ui-icon ui-icon-closethick'></span>
             <span class='ui-icon ui-icon-minusthick oe-dashboard-fold' t-if="!action.attrs.fold"></span>
             <span class='ui-icon ui-icon-plusthick oe-dashboard-fold' t-if="action.attrs.fold"></span>