{% load static cosinnus_tags cosinnus_map_tags %}

<html>
	<head>
		<script src="{% static 'js/vendor/jquery-2.1.0.min.js' %}"></script>
		<script src="{% static 'js/vendor/underscore-1.8.3.js' %}"></script>
		<script src="{% static 'js/vendor/backbone-1.3.3.js' %}"></script>
		<script src="{% static 'js/vendor/leaflet.js' %}"></script>
		<script src="{% static 'js/vendor/leaflet.markercluster-0.7.js' %}"></script>
        <script src="{% static 'js/vendor/select2.min.js' %}"></script>
		<script src="{% static 'js/client.js' %}?v=0.3"></script>
		
		<link href="{% static 'css/bootstrap3-cosinnus.css' %}" rel="stylesheet">
        <link href="{% static 'css/vendor/font-awesome.min.css' %}" rel="stylesheet">
		<link href="{% static 'css/vendor/leaflet.css' %}" rel="stylesheet">
		<link href="{% static 'css/vendor/leaflet.markercluster-0.7.css' %}" rel="stylesheet">
		<link href="{% static 'css/vendor/leaflet.markercluster.default-0.7.css' %}" rel="stylesheet">
		<link href="{% static 'css/vendor/spinkit-double-bounce.css' %}" rel="stylesheet">
        <link href="{% static 'css/vendor/select2.css' %}" rel="stylesheet">
		
		{% if True %}
		<link rel="stylesheet/less" href="{% static "less/cosinnus.less" %}">
		<script src="{% static "js/vendor/less.min.js" %}"></script>
		{% else %}
	    <link href="{% static 'css/cosinnus.css' %}?v=0.29" rel="stylesheet">
		{% endif %}
	</head>
	
	<body>
    	{% include 'cosinnus/common/internet_explorer_not_supported.html' %}
		
		<div class="map-root"></div>
		{% captureas map_settings %}{"controlsEnabled": {% if request.GET.controls_disabled %}false{% else %}true{% endif %}, "topicsHtml": "{% render_cosinnus_topics_field "escape" %}", "markerIcons": {% render_map_marker_icon_json %}}{% endcaptureas %}
            
		{% include 'cosinnus/common/init_client_module.html' with module='map' id="fullscreen" extra_classes="no-navbar" settings=map_settings  %}
	</body>
</html>