Add alert when not sharing location

This commit is contained in:
Gabriel Augendre 2019-10-30 14:22:08 +01:00
parent e2014bc615
commit 0c7d5e11d3
No known key found for this signature in database
GPG Key ID: 1E693F4CE4AEE7B4
1 changed files with 9 additions and 0 deletions

View File

@ -10,6 +10,15 @@
{% block title %}Map{% endblock %}
{% block content %}
{% if not friend.shares_location_to.all %}
<div class="alert alert-warning">
<h4 class="alert-heading">You're not sharing</h4>
<div>
You're not sharing your location with anyone.<br>
{{ friend.is_shared_location_by.count }} user(s) are sharing their location with you.
</div>
</div>
{% endif %}
<div id="map"></div>
{% endblock %}