Use a specific prefix for maps ids in search results
This commit is contained in:
parent
65b771a362
commit
a1676d56ca
2 changed files with 3 additions and 3 deletions
|
@ -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 %}
|
||||
{% 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 %}
|
||||
|
|
Loading…
Reference in a new issue