From 0c7d5e11d343d1942274f05d6fa799611397a334 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Wed, 30 Oct 2019 14:22:08 +0100 Subject: [PATCH] Add alert when not sharing location --- map/templates/map/map.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/map/templates/map/map.html b/map/templates/map/map.html index 42ba423..3e7d4a7 100644 --- a/map/templates/map/map.html +++ b/map/templates/map/map.html @@ -10,6 +10,15 @@ {% block title %}Map{% endblock %} {% block content %} + {% if not friend.shares_location_to.all %} +
+

You're not sharing

+
+ You're not sharing your location with anyone.
+ {{ friend.is_shared_location_by.count }} user(s) are sharing their location with you. +
+
+ {% endif %}
{% endblock %}