diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2021-09-05 16:58:56 +0200 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2021-09-06 11:08:50 +0200 |
commit | ad528c706efb46b415e460838f4562241a2d10ba (patch) | |
tree | cc82327ebfa65d9db37baeb077a670fdc995e32f /searx/templates | |
parent | 48c806954eecc242227ad9868eabe03d1d415621 (diff) | |
download | searxng-ad528c706efb46b415e460838f4562241a2d10ba.tar.gz searxng-ad528c706efb46b415e460838f4562241a2d10ba.zip |
[fix] make result template map more CSP compliant - simple & oscar
Add osm-map-box in::
searx/static/themes/__common__/less/result_templates.less
Replaced sty= in files::
./oscar/result_templates/map.html:64: <div style="height:300px; width:100%; margin: 10px 0;" id="osm-map-{{ index }}"></div>
./simple/result_templates/map.html:65: <div id="result-map-{{ index }}" class="invisible"><div id="osm-map-{{ index }}" style="height:300px; width:100%; margin: 10px 0;" ></div></div>
Reported-by: https://github.com/searxng/searxng/issues/57
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/templates')
-rw-r--r-- | searx/templates/oscar/result_templates/map.html | 2 | ||||
-rw-r--r-- | searx/templates/simple/result_templates/map.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/searx/templates/oscar/result_templates/map.html b/searx/templates/oscar/result_templates/map.html index eb3fccfc0..3b7ba1111 100644 --- a/searx/templates/oscar/result_templates/map.html +++ b/searx/templates/oscar/result_templates/map.html @@ -64,7 +64,7 @@ {%- if (result.latitude and result.longitude) or result.boundingbox -%} <div class="collapse" id="result-map-{{ index }}"> - <div style="height:300px; width:100%; margin: 10px 0;" id="osm-map-{{ index }}"></div> + <div class="osm-map-box" id="osm-map-{{ index }}"></div> </div> {%- endif -%} diff --git a/searx/templates/simple/result_templates/map.html b/searx/templates/simple/result_templates/map.html index 8b08bda6e..dc6a62010 100644 --- a/searx/templates/simple/result_templates/map.html +++ b/searx/templates/simple/result_templates/map.html @@ -45,7 +45,7 @@ {{- result_sub_footer(result, proxify) -}} {% if (result.latitude and result.longitude) or result.boundingbox -%} - <div id="result-map-{{ index }}" class="invisible"><div id="osm-map-{{ index }}" style="height:300px; width:100%; margin: 10px 0;" ></div></div> + <div id="result-map-{{ index }}" class="invisible"><div id="osm-map-{{ index }}" class="osm-map-box"></div></div> {%- endif %} {{- result_footer(result) }} |