[IMP] Improved code as per suggested.

bzr revid: psa@tinyerp.com-20121127122231-5amahuk6tqp9so74
This commit is contained in:
Paramjit Singh Sahota 2012-11-27 17:52:31 +05:30
parent cec3e542a6
commit 30212a6af4
2 changed files with 2 additions and 3 deletions

View File

@ -391,7 +391,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-if="menu.needaction_counter > 99"> &#8734; </t><t t-if="menu.needaction_counter lt= 99"> <t t-esc="menu.needaction_counter"/> </t>
<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

@ -48,8 +48,7 @@
<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-if="widget.group.get('length') > 99"> &#8734; </t>
<t t-if="widget.group.get('length') lt= 99"> <t t-esc="widget.group.get('length')"/> </t>
<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">