2019-12-08 13:14:18 +00:00
|
|
|
{% from 'oscar/macros.html' import result_header, result_sub_header, result_footer, result_footer_rtl, icon %}
|
|
|
|
|
2021-03-17 08:22:05 +00:00
|
|
|
{{- result_header(result, favicons, loop.index) -}}
|
|
|
|
{{- result_sub_header(result, loop.index) -}}
|
2019-12-08 13:14:18 +00:00
|
|
|
|
2021-03-17 08:22:05 +00:00
|
|
|
{%- if (result.latitude and result.longitude) or result.boundingbox -%}
|
2019-12-08 13:14:18 +00:00
|
|
|
<small> • <a class="text-info btn-collapse collapsed searx_init_map cursor-pointer disabled_if_nojs" data-toggle="collapse" data-target="#result-map-{{ index }}" data-leaflet-target="osm-map-{{ index }}" data-map-lon="{{ result.longitude }}" data-map-lat="{{ result.latitude }}" {% if result.boundingbox %}data-map-boundingbox='{{ result.boundingbox|tojson|safe }}'{% endif %} {% if result.geojson %}data-map-geojson='{{ result.geojson|tojson|safe }}'{% endif %} data-btn-text-collapsed="{{ _('show map') }}" data-btn-text-not-collapsed="{{ _('hide map') }}">{{ icon('globe') }} {{ _('show map') }}</a></small>
|
2021-03-17 08:22:05 +00:00
|
|
|
{%- endif -%}
|
2019-12-08 13:14:18 +00:00
|
|
|
|
|
|
|
{# {% if (result.latitude and result.longitude) %}
|
|
|
|
<small> • <a class="text-info btn-collapse collapsed cursor-pointer disabled_if_nojs" data-toggle="collapse" data-target="#result-geodata-{{ index }}" data-btn-text-collapsed="{{ _('show geodata') }}" data-btn-text-not-collapsed="{{ _('hide geodata') }}">{{ icon('map-marker') }} {{ _('show geodata') }}</a></small>
|
|
|
|
{% endif %} #}
|
|
|
|
|
|
|
|
<div class="container-fluid">
|
|
|
|
|
2021-03-17 08:22:05 +00:00
|
|
|
{%- if result.address -%}
|
2019-12-08 13:14:18 +00:00
|
|
|
<p class="row result-content result-adress col-xs-12 col-sm-5 col-md-4" itemscope itemtype="http://schema.org/PostalAddress">
|
2021-03-17 08:22:05 +00:00
|
|
|
{%- if result.address.name -%}
|
2019-12-08 13:14:18 +00:00
|
|
|
<strong itemprop="name">{{ result.address.name }}</strong><br/>
|
2021-03-17 08:22:05 +00:00
|
|
|
{%- endif -%}
|
|
|
|
{%- if result.address.road -%}
|
2019-12-08 13:14:18 +00:00
|
|
|
<span itemprop="streetAddress">
|
2021-03-17 08:22:05 +00:00
|
|
|
{%- if result.address.house_number %}{{ result.address.house_number }}, {% endif -%}
|
|
|
|
{{- result.address.road -}}
|
2019-12-08 13:14:18 +00:00
|
|
|
</span><br/>
|
2021-03-17 08:22:05 +00:00
|
|
|
{%- endif -%}
|
|
|
|
{%- if result.address.locality -%}
|
2019-12-08 13:14:18 +00:00
|
|
|
<span itemprop="addressLocality">{{ result.address.locality }}</span>
|
2021-03-17 08:22:05 +00:00
|
|
|
{%- if result.address.postcode %}, <span itemprop="postalCode">{{ result.address.postcode }}</span>{% endif -%}
|
2019-12-08 13:14:18 +00:00
|
|
|
<br/>
|
2021-03-17 08:22:05 +00:00
|
|
|
{%- endif -%}
|
|
|
|
{%- if result.address.country -%}
|
2019-12-08 13:14:18 +00:00
|
|
|
<span itemprop="addressCountry">{{ result.address.country }}</span>
|
2021-03-17 08:22:05 +00:00
|
|
|
{%- endif -%}
|
2019-12-08 13:14:18 +00:00
|
|
|
</p>
|
2021-03-17 08:22:05 +00:00
|
|
|
{%- endif %}
|
2019-12-08 13:14:18 +00:00
|
|
|
|
|
|
|
{# {% if (result.latitude and result.longitude) %}
|
|
|
|
<div class="row collapse col-xs-12 col-sm-5 col-md-4" id="result-geodata-{{ index }}">
|
|
|
|
<strong>Longitude:</strong> {{ result.longitude }} <br/>
|
|
|
|
<strong>Latitude:</strong> {{ result.latitude }}
|
|
|
|
</div>
|
|
|
|
{% endif %} #}
|
|
|
|
|
2021-03-17 08:22:05 +00:00
|
|
|
{%- if result.content %}<p class="row result-content col-xs-12 col-sm-12 col-md-12">{{ result.content|safe }}</p>{% endif -%}
|
2019-12-08 13:14:18 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2021-03-17 08:22:05 +00:00
|
|
|
{%- if (result.latitude and result.longitude) or result.boundingbox -%}
|
2019-12-08 13:14:18 +00:00
|
|
|
<div class="collapse" id="result-map-{{ index }}">
|
|
|
|
<div style="height:300px; width:100%; margin: 10px 0;" id="osm-map-{{ index }}"></div>
|
|
|
|
</div>
|
2021-03-17 08:22:05 +00:00
|
|
|
{%- endif -%}
|
2019-12-08 13:14:18 +00:00
|
|
|
|
2021-03-17 08:22:05 +00:00
|
|
|
{%- if rtl -%}
|
|
|
|
{{- result_footer_rtl(result, loop.index) -}}
|
2019-12-08 13:14:18 +00:00
|
|
|
{% else %}
|
2021-03-17 08:22:05 +00:00
|
|
|
{{- result_footer(result, loop.index) -}}
|
|
|
|
{%- endif -%}
|