logo

searx

My custom branche(s) on searx, a meta-search engine git clone https://hacktivis.me/git/searx.git
commit: 46dd502592f5ad09fab761c9311065b72ee3e55d
parent c0fc248213066ef0ad4ed439d570b225b78afd44
Author: Thomas Pointhuber <thomas.pointhuber@gmx.at>
Date:   Tue,  4 Nov 2014 12:58:12 +0100

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

Diffstat:

Msearx/templates/oscar/result_templates/map.html4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/searx/templates/oscar/result_templates/map.html b/searx/templates/oscar/result_templates/map.html @@ -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 %}