diff options
author | Alexandre Flament <alex@al-f.net> | 2021-06-01 18:10:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-01 18:10:05 +0200 |
commit | 3ce1b40512d8a9d0e93fc0bbe154881961e196b1 (patch) | |
tree | 8e53f629680074d008c2d2cdd914f228d4c7b82b /searx/templates | |
parent | ee83c99d2b40efaaf4f3e6635e7a43f7731cb128 (diff) | |
parent | 60dc91f2345dc3326e1b57d3a6b46f580ed7cf28 (diff) | |
download | searxng-3ce1b40512d8a9d0e93fc0bbe154881961e196b1.tar.gz searxng-3ce1b40512d8a9d0e93fc0bbe154881961e196b1.zip |
Merge pull request #113 from searxng/remove-overpass
[mod] remove overpass API call
Diffstat (limited to 'searx/templates')
-rw-r--r-- | searx/templates/oscar/result_templates/map.html | 13 | ||||
-rw-r--r-- | searx/templates/simple/result_templates/map.html | 13 |
2 files changed, 0 insertions, 26 deletions
diff --git a/searx/templates/oscar/result_templates/map.html b/searx/templates/oscar/result_templates/map.html index 9713452b3..011ccc0bd 100644 --- a/searx/templates/oscar/result_templates/map.html +++ b/searx/templates/oscar/result_templates/map.html @@ -7,10 +7,6 @@ <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> {%- endif -%} -{%- if result.osm and (result.osm.type and result.osm.id) -%} - <small> • <a class="text-info btn-collapse collapsed cursor-pointer searx_overpass_request disabled_if_nojs" 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 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 %} #} @@ -39,15 +35,6 @@ </p> {%- endif %} -{%- 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 }}"{% if rtl %} dir="ltr"{% endif %}> - <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/> diff --git a/searx/templates/simple/result_templates/map.html b/searx/templates/simple/result_templates/map.html index 2de445168..15c89b070 100644 --- a/searx/templates/simple/result_templates/map.html +++ b/searx/templates/simple/result_templates/map.html @@ -7,9 +7,6 @@ <small> • <a class="btn-collapse collapsed searx_init_map hide_if_nojs" data-target="#result-map-{{ index }}" data-btn-text-collapsed="{{ _('show map') }}" data-btn-text-not-collapsed="{{ _('hide map') }}" 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 %}>{{ icon( 'globe') }} {{ _('show map') }}</a></small> {%- endif -%} -{%- if result.osm and (result.osm.type and result.osm.id) -%} - <small> • <a class="btn-collapse collapsed hide_if_nojs searx_overpass_request" data-target="#result-overpass-{{ index }}" data-btn-text-collapsed="{{ _('show details') }}" data-btn-text-not-collapsed="{{ _('hide details') }}" 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 }}">{{ icon('location') }} {{ _('show details') }}</a></small> -{%- endif -%} {#- {% if (result.latitude and result.longitude) %} <small> • <a class="btn-collapse disabled_if_nojs" data-target="#result-geodata-{{ index }}" data-btn-text-collapsed="{{ _('show geodata') }}" data-btn-text-not-collapsed="{{ _('hide geodata') }}">{{ icon('location') }} {{ _('show geodata') }}</a></small> @@ -42,16 +39,6 @@ {{- result_sub_footer(result, proxify) -}} -{% if result.osm and (result.osm.type and result.osm.id) -%} - <div class="result-content invisible" id="result-overpass-{{ index }}"{% if rtl %} dir="ltr"{% endif %}> - <div id="result-overpass-table-loading-{{ index }}"><div class="loader">{{ _('Loading...') }}</div></div> - <table id="result-overpass-table-{{ index }}"> - <tbody> - </tbody> - </table> - </div> -{%- endif %} - {#- {% if (result.latitude and result.longitude) -%} <div id="result-geodata-{{ index }}" class="invisible"> |