[MERGE] from trunk-improve-notification-infinity-psa; Improved notification when it will be more than 99 than display 99+

bzr revid: chm@openerp.com-20121128094131-xewcni2ee1sirqep
This commit is contained in:
Christophe Matthieu 2012-11-28 10:41:31 +01:00
commit 71e999d611
2 changed files with 4 additions and 2 deletions

View File

@ -390,7 +390,7 @@
<t t-esc="menu.name"/>
<t t-if="menu.needaction_enabled and menu.needaction_counter">
<div class="oe_tag oe_tag_dark oe_menu_counter">
<t t-esc="menu.needaction_counter"/>
<t t-if="menu.needaction_counter &gt; 99"> 99+ </t><t t-if="menu.needaction_counter &lt;= 99"> <t t-esc="menu.needaction_counter"/> </t>
</div>
</t>
</a>

View File

@ -47,7 +47,9 @@
<div class="oe_fold_column">
<div t-attf-class="oe_kanban_group_title #{widget.undefined_title ? 'oe_kanban_group_title_undefined' : ''}">
<span><t t-esc="widget.title"/></span>
<span class="oe_kanban_group_length oe_tag" style="position:relative; top:-2px;"><t t-esc="widget.group.get('length')"/></span>
<span class="oe_kanban_group_length oe_tag" style="position:relative; top:-2px;">
<t t-if="widget.group.get('length') &gt; 99"> 99+ </t><t t-if="widget.group.get('length') &lt;= 99"> <t t-esc="widget.group.get('length')"/> </t>
</span>
</div>
<ul class="oe_kanban_aggregates">
<li t-foreach="widget.aggregates" t-as="aggregate">