{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, icon %} {{ result_header(result) }} {{ result_sub_header(result) }} {% if (result.latitude and result.longitude) or result.boundingbox %} • {{ icon('globe') }} {{ _('show map') }} {% endif %} {% if result.osm and (result.osm.type and result.osm.id) %} • {{ icon('map-marker') }} {{ _('show details') }} {% endif %} {# {% if (result.latitude and result.longitude) %} • {{ icon('map-marker') }} {{ _('show geodata') }} {% endif %} #}
{% if result.address.name %}
{{ result.address.name }}
{% endif %}
{% if result.address.road %}
{% if result.address.house_number %}{{ result.address.house_number }}, {% endif %}
{{ result.address.road }}
{% endif %}
{% if result.address.locality %}
{{ result.address.locality }}
{% if result.address.postcode %}, {{ result.address.postcode }}{% endif %}
{% endif %}
{% if result.address.country %}
{{ result.address.country }}
{% endif %}
{{ result.content|safe }}
{% endif %}