-
Notifications
You must be signed in to change notification settings - Fork 88
/
geotags_content.html
64 lines (61 loc) · 3.14 KB
/
geotags_content.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
{% load static %}
{% load absurl %}
<div class="col-12 v-spacing-top-3 no-paddings {% if sound or username %}v-spacing-2{% endif %}">
<div id="mapCanvas{% if sound %}-{{ sound.id }}{% elif usernane %}-{{ username }}{% elif pack %}-{{ pack.id }}{% elif tag %}-{{ tag }}{% endif %}" class="map main-map"
data-map-center-lat="{{ center_lat }}"
data-map-center-lon="{{ center_lon }}"
data-map-zoom="{{ zoom }}"
data-map-show-search="{% if sound %}false{% else %}true{% endif %}"
data-map-username="{% if username %}{{ username }}{% endif %}"
data-map-pack-id="{% if pack %}{{ pack.id }}{% endif %}"
data-map-qp="{% if query_params_encoded %}{{ query_params_encoded }}{% endif %}"
data-map-tag="{% if tag %}{{ tag }}{% endif %}"
data-geotags-url="{{ url }}"
data-geotags-embed-base-url="{% absurl 'embed-geotags' %}"
data-access-token="pk.eyJ1IjoiZnJlZXNvdW5kIiwiYSI6ImNrd3E0Mm9lbjBqM2Qyb2wwdmwxaWI3a3oifQ.MZkgLSByRuk_Xql67CySAg"
></div>
</div>
{% if not modal_version %}
<div class="row middle">
<div class="col-md-8 v-spacing-top-4 v-spacing-2">
{% if username or sound or pack or query_params %}
{% if query_search_page_url %}
<a class="no-hover btn-secondary btn-inverse" href="{{ query_search_page_url }}">See results in search page</a>
{% endif %}
<a class="no-hover btn-secondary btn-inverse" href="{% url "geotags" %}">View all geotags</a>
{% else %}
{% comment %} all sounds map {% endcomment %}
<a class="no-hover btn-secondary btn-inverse" href="{% url 'sounds-search' %}?mm=1">See results in search page</a>
{% endif %}
</div>
<div class="col-md-4 v-spacing-top-2 v-spacing-2">
{% if not sound %}
<div class="text-md-right"><a id="embedControlsLabel" href="javascript:void(0);">Embed this map</a></div>
{% endif %}
</div>
</div>
{% endif %}
{% if not sound and not modal_version %}
<div class="row">
<div class="col-md-12 v-spacing-top-4">
<div id="embedControls" class="display-none w-100">
<form class="bw-form">
<div class="w-50">
<div class="row">
<div class="col-md-6">
<label for="embedWidthInput">Embed width</label> <input type="number" min="100" step="1" value="900" id="embedWidthInput" style="margin-bottom:0px;"/>
</div>
<div class="col-md-6">
<label for="embedHeightInput">Embed height</label> <input type="number" min="100" step="1" value="600" id="embedHeightInput" style="margin-bottom:0px;"/> 
</div>
</div>
</div>
<label for="embedClusterCheck">Show clusters in embed</label> <input class="bw-checkbox" type="checkbox" checked id="embedClusterCheck" />
<p>
<textarea id="embedCode" readonly style="width:100%;height:60px;"></textarea>
</p>
</form>
</div>
</div>
</div>
{% endif %}