[fix][template][oscar] print ',' only if postcode is found

This commit is contained in:
Thomas Pointhuber 2014-11-04 12:58:12 +01:00
parent c0fc248213
commit 46dd502592
1 changed files with 2 additions and 2 deletions

View File

@ -20,8 +20,8 @@
</span><br/>
{% endif %}
{% if result.address.locality %}
<span itemprop="addressLocality">{{ result.address.locality }}</span>,
{% if result.address.postcode %} <span itemprop="postalCode">{{ result.address.postcode }}</span>{% endif %}
<span itemprop="addressLocality">{{ result.address.locality }}</span>
{% if result.address.postcode %}, <span itemprop="postalCode">{{ result.address.postcode }}</span>{% endif %}
<br/>
{% endif %}
{% if result.address.country %}