[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:
Denis Ledoux 2014-01-30 16:56:00 +01:00
parent 369a88a5a1
commit a2fba1c288
1 changed files with 1 additions and 1 deletions

View File

@ -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>