Reword some stuff + don't open popup by default
This commit is contained in:
parent
cead4ac2c9
commit
aedfde2984
2 changed files with 2 additions and 5 deletions
|
@ -19,7 +19,7 @@
|
||||||
{% block add-head %}
|
{% block add-head %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
<title>{{ app.site.name }} · {% block title %}Home{% endblock %}</title>
|
<title>FriendsMap · {% block title %}Home{% endblock %}</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{#{% include 'map/navbar.html' %}#}
|
{#{% include 'map/navbar.html' %}#}
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
{% extends 'map/base.html' %}
|
{% extends 'map/base.html' %}
|
||||||
{% load static %}
|
{% load static %}
|
||||||
|
|
||||||
{% block title %}Carte autour de {{ place }}{% endblock %}
|
|
||||||
{% block h1 %}Carte autour de {{ place }}{% endblock %}
|
|
||||||
|
|
||||||
{% block add-head %}
|
{% block add-head %}
|
||||||
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.4.0/dist/leaflet.css"
|
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.4.0/dist/leaflet.css"
|
||||||
integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA=="
|
integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA=="
|
||||||
|
@ -26,7 +23,7 @@
|
||||||
}).addTo(map);
|
}).addTo(map);
|
||||||
{% for location in locations %}
|
{% for location in locations %}
|
||||||
let marker = L.marker([{{ location.latitude_str }}, {{ location.longitude_str }}]).addTo(map);
|
let marker = L.marker([{{ location.latitude_str }}, {{ location.longitude_str }}]).addTo(map);
|
||||||
marker.bindPopup("<strong>{{ location.friend.get_full_name }}</strong> from {{ location.start_date }} until {{ location.end_date }}").openPopup();
|
marker.bindPopup("<strong>{{ location.friend.get_full_name }}</strong> from {{ location.start_date }} until {{ location.end_date }}");
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue