Add alert when not sharing location
This commit is contained in:
parent
e2014bc615
commit
0c7d5e11d3
1 changed files with 9 additions and 0 deletions
|
@ -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 %}
|
||||
|
||||
|
|
Loading…
Reference in a new issue