[FIX] website_membership: do not display '0' in country list head if there is no result
bzr revid: dle@openerp.com-20140130155600-bh412ye3sqsao56p
This commit is contained in:
parent
369a88a5a1
commit
a2fba1c288
|
@ -88,7 +88,7 @@
|
|||
<t t-foreach="countries">
|
||||
<li t-if="country_id" t-att-class="post.get('country_id', '0') == str(country_id and country_id[0]) and 'active' or ''">
|
||||
<a t-attf-href="/members/#{ membership and 'association/%s/' % membership.id or '' }#{ country_id[0] and 'country/%s/' % slug(country_id) or '' }#{ search }"><t t-esc="country_id[1]"/>
|
||||
<span class="badge pull-right"><t t-esc="country_id_count"/></span>
|
||||
<span class="badge pull-right"><t t-esc="country_id_count or ''"/></span>
|
||||
</a>
|
||||
</li>
|
||||
</t>
|
||||
|
|
Loading…
Reference in New Issue