-
Notifications
You must be signed in to change notification settings - Fork 7
/
map_list.html
32 lines (29 loc) · 1022 Bytes
/
map_list.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{% extends "maps/map_base.html" %}
{% load i18n %}
{% load staticfiles %}
{% block body_class %}maps explore{% endblock %}
{% block body %}
<div class="page-header">
<a href="{% url "new_map" %}" class="btn btn-primary pull-right">{% trans "Create a New Map" %}</a>
<h2>{% trans "Explore Maps" %}</h2>
</div>
{% include "search/_search_content.html" %}
{% include "_bulk_permissions_form.html" %}
{% endblock %}
{% block extra_script %}
{{ block.super }}
{% if GEONODE_SECURITY_ENABLED %}
{% include "_permissions_form_js.html" %}
{% endif %}
<script type="text/javascript">
{% if HAYSTACK_SEARCH %}
SEARCH_URL = '{% url 'api_get_search' api_name='api' resource_name='base' %}?type__in=map'
{% else %}
SEARCH_URL = '{% url 'api_dispatch_list' api_name='wm_api' resource_name='maps' %}';
{% endif %}
FILTER_TYPE = 'map';
</script>
{% with include_spatial='true' %}
{% include 'search/search_scripts.html' %}
{% endwith %}
{% endblock extra_script %}