mirror of
https://github.com/HaitiData/haitidata.git
synced 2026-10-26 17:35:17 +00:00
44 lines
1.3 KiB
HTML
44 lines
1.3 KiB
HTML
{% extends "maps/map_base.html" %}
|
|
{% load i18n %}
|
|
{% load staticfiles %}
|
|
{% load url from future %}
|
|
|
|
{% block title %}{{ block.super }} {% trans "Maps" %}{% endblock %}
|
|
{% block page-title %}
|
|
{% trans "Explore Maps" %}
|
|
{% if user.is_authenticated %}
|
|
<div class="btn-group pull-right">
|
|
<a class="btn btn-primary btn-icon" href="{% url "new_map" %}">
|
|
<i class="fa fa-plus" title="Create Map"></i>
|
|
</a>
|
|
<a class="btn btn-primary" href="{% url "new_map" %}">
|
|
{% trans "Create Map" %}
|
|
</a>
|
|
</div>
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block body_class %}maps{% endblock %}
|
|
|
|
{% block body %}
|
|
{% include "search/_search_content.html" %}
|
|
{% include "_bulk_permissions_form.html" %}
|
|
{% endblock %}
|
|
|
|
{% block extra_script %}
|
|
{% 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='api' resource_name='maps' %}';
|
|
{% endif %}
|
|
FILTER_TYPE = 'map';
|
|
</script>
|
|
{% with include_spatial='true' %}
|
|
{% include 'search/search_scripts.html' %}
|
|
{% endwith %}
|
|
{% endblock extra_script %}
|