From a1676d56ca43f5e64b219855aff3c4e008d15f0b Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Mon, 27 Jun 2016 15:16:55 +0200 Subject: [PATCH] Use a specific prefix for maps ids in search results --- umap/templates/leaflet_storage/map_list.html | 4 ++-- umap/templates/umap/search.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/umap/templates/leaflet_storage/map_list.html b/umap/templates/leaflet_storage/map_list.html index 3ae68912..73d9b607 100644 --- a/umap/templates/leaflet_storage/map_list.html +++ b/umap/templates/leaflet_storage/map_list.html @@ -3,10 +3,10 @@ {% for map_inst in maps %}
- {% map_fragment map_inst %} + {% map_fragment map_inst prefix=prefix %}
{{ map_inst.name }}{% if map_inst.owner %} {% trans "by" %} {{ map_inst.owner }}{% endif %}
{% endfor %} {% if maps.has_next %}
{% trans "More" %}
-{% endif %} \ No newline at end of file +{% endif %} diff --git a/umap/templates/umap/search.html b/umap/templates/umap/search.html index 518afcc0..c4ed5926 100644 --- a/umap/templates/umap/search.html +++ b/umap/templates/umap/search.html @@ -8,7 +8,7 @@
{% if maps %} - {% include "leaflet_storage/map_list.html" %} + {% include "leaflet_storage/map_list.html" with prefix='search_map_' %} {% else %} {% trans "Not map found." %} {% endif %}