Skip to content
Extraits de code Groupes Projets
Valider a1676d56 rédigé par Yohan Boniface's avatar Yohan Boniface
Parcourir les fichiers

Use a specific prefix for maps ids in search results

parent 65b771a3
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -3,10 +3,10 @@
{% for map_inst in maps %}
<hr />
<div class="col wide">
{% map_fragment map_inst %}
{% map_fragment map_inst prefix=prefix %}
<div class="legend"><a href="{{ map_inst.get_absolute_url }}">{{ map_inst.name }}</a>{% if map_inst.owner %} <em>{% trans "by" %} <a href="{% url 'user_maps' map_inst.owner.username %}">{{ map_inst.owner }}</a></em>{% endif %}</div>
</div>
{% endfor %}
{% if maps.has_next %}
<div class="col wide"><a href="?{% paginate_querystring maps.next_page_number %}" class="button more_button neutral">{% trans "More" %}</a></div>
{% endif %}
\ No newline at end of file
{% endif %}
......@@ -8,7 +8,7 @@
<div class="wrapper">
<div class="map_list row">
{% if maps %}
{% include "leaflet_storage/map_list.html" %}
{% include "leaflet_storage/map_list.html" with prefix='search_map_' %}
{% else %}
{% trans "Not map found." %}
{% endif %}
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter