2014-11-03 10:39:47 +01:00
|
|
|
{% from 'oscar/macros.html' import icon %}
|
2014-11-02 13:00:28 +01:00
|
|
|
|
2014-12-18 16:26:32 +01:00
|
|
|
<h4 class="result_header">{% if result.engine~".png" in favicons %}<img width="32" height="32" class="favicon" src="static/{{ theme }}/img/icons/{{ result.engine }}.png" alt="{{ result.engine }}" /> {% endif %}<a href="{{ result.url }}">{{ result.title|safe }}</a></h4>
|
2014-11-02 13:00:28 +01:00
|
|
|
|
2014-12-08 01:19:05 +01:00
|
|
|
{% if result.publishedDate %}<time class="text-muted" datetime="{{ result.pubdate }}" >{{ result.publishedDate }}</time>{% endif %}
|
2014-11-19 14:59:30 +01:00
|
|
|
|
2014-11-03 10:39:47 +01:00
|
|
|
<small><a class="text-info" href="https://web.archive.org/web/{{ result.pretty_url }}">{{ icon('link') }} {{ _('cached') }}</a></small>
|
2014-11-19 14:59:30 +01:00
|
|
|
|
2014-11-03 10:39:47 +01:00
|
|
|
{% if (result.latitude and result.longitude) or result.boundingbox %}
|
|
|
|
<small> • <a class="text-info btn-collapse collapsed searx_init_map cursor-pointer" 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>
|
|
|
|
{% endif %}
|
2014-11-03 18:46:58 +01:00
|
|
|
|
2014-11-19 14:59:30 +01:00
|
|
|
{% if result.osm and (result.osm.type and result.osm.id) %}
|
|
|
|
<small> • <a class="text-info btn-collapse collapsed cursor-pointer searx_overpass_request" data-toggle="collapse" data-target="#result-overpass-{{ index }}" data-osm-type="{{ result.osm.type }}" data-osm-id="{{ result.osm.id }}" data-result-table="result-overpass-table-{{ index }}" data-result-table-loadicon="result-overpass-table-loading-{{ index }}" data-btn-text-collapsed="{{ _('show details') }}" data-btn-text-not-collapsed="{{ _('hide details') }}">{{ icon('map-marker') }} {{ _('show details') }}</a></small>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{# {% if (result.latitude and result.longitude) %}
|
|
|
|
<small> • <a class="text-info btn-collapse collapsed cursor-pointer" 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">
|
|
|
|
|
2014-11-03 18:46:58 +01:00
|
|
|
{% if result.address %}
|
2014-11-19 14:59:30 +01:00
|
|
|
<p class="row result-content result-adress col-xs-12 col-sm-5 col-md-4" itemscope itemtype="http://schema.org/PostalAddress">
|
2014-11-03 18:46:58 +01:00
|
|
|
{% if result.address.name %}
|
|
|
|
<strong itemprop="name">{{ result.address.name }}</strong><br/>
|
|
|
|
{% endif %}
|
|
|
|
{% if result.address.road %}
|
|
|
|
<span itemprop="streetAddress">
|
|
|
|
{% if result.address.house_number %}{{ result.address.house_number }}, {% endif %}
|
|
|
|
{{ result.address.road }}
|
|
|
|
</span><br/>
|
|
|
|
{% endif %}
|
|
|
|
{% if result.address.locality %}
|
2014-11-04 12:58:12 +01:00
|
|
|
<span itemprop="addressLocality">{{ result.address.locality }}</span>
|
|
|
|
{% if result.address.postcode %}, <span itemprop="postalCode">{{ result.address.postcode }}</span>{% endif %}
|
2014-11-03 18:46:58 +01:00
|
|
|
<br/>
|
|
|
|
{% endif %}
|
|
|
|
{% if result.address.country %}
|
|
|
|
<span itemprop="addressCountry">{{ result.address.country }}</span>
|
|
|
|
{% endif %}
|
2014-11-19 14:59:30 +01:00
|
|
|
</p>
|
2014-11-03 18:46:58 +01:00
|
|
|
{% endif %}
|
|
|
|
|
2014-11-19 14:59:30 +01:00
|
|
|
{% if result.osm and (result.osm.type and result.osm.id) %}
|
|
|
|
<div class="row result-content collapse col-xs-12 col-sm-7 col-md-8" id="result-overpass-{{ index }}">
|
|
|
|
<div class="text-center" id="result-overpass-table-loading-{{ index }}"><img src="{{ url_for('static', filename='img/loader.gif') }}" alt="Loading ..."/></div>
|
|
|
|
<table class="table table-striped table-condensed hidden" id="result-overpass-table-{{ index }}">
|
|
|
|
<tr><th>key</th><th>value</th></tr>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{# {% 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 %} #}
|
|
|
|
|
|
|
|
{% if result.content %}<p class="row result-content col-xs-12 col-sm-12 col-md-12">{{ result.content|safe }}</p>{% endif %}
|
2014-11-02 13:00:28 +01:00
|
|
|
|
2014-11-19 14:59:30 +01:00
|
|
|
</div>
|
|
|
|
|
2014-11-03 10:39:47 +01:00
|
|
|
{% if (result.latitude and result.longitude) or result.boundingbox %}
|
2014-11-02 13:00:28 +01:00
|
|
|
<div class="collapse" id="result-map-{{ index }}">
|
|
|
|
<div style="height:300px; width:100%; margin: 10px 0;" id="osm-map-{{ index }}"></div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
|
|
|
|
<span class="label label-default pull-right">{{ result.engine }}</span>
|
|
|
|
<p class="text-muted">{{ result.pretty_url }}</p>
|