Reword some stuff + don't open popup by default

This commit is contained in:
Gabriel Augendre 2019-03-02 12:49:44 +01:00
parent cead4ac2c9
commit aedfde2984
2 changed files with 2 additions and 5 deletions

View file

@ -19,7 +19,7 @@
{% block add-head %}
{% endblock %}
<title>{{ app.site.name }} &centerdot; {% block title %}Home{% endblock %}</title>
<title>FriendsMap &centerdot; {% block title %}Home{% endblock %}</title>
</head>
<body>
{#{% include 'map/navbar.html' %}#}

View file

@ -1,9 +1,6 @@
{% extends 'map/base.html' %}
{% load static %}
{% block title %}Carte autour de {{ place }}{% endblock %}
{% block h1 %}Carte autour de {{ place }}{% endblock %}
{% block add-head %}
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.4.0/dist/leaflet.css"
integrity="sha512-puBpdR0798OZvTTbP4A8Ix/l+A4dHDD0DGqYW6RQ+9jxkRFclaxxQb/SJAWZfWAkuyeQUytO7+7N4QKrDh+drA=="
@ -26,7 +23,7 @@
}).addTo(map);
{% for location in locations %}
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 %}
</script>
{% endblock %}