{% if not student in request.user.student.blocked_kids.all %}
<divclass="col-sm-3 text-center">
<imgclass="img-circle img-responsive center center-block"src="{{ student.profile_image_url }}"alt="{{ student.get_first_name_or_uname }} profile picture">
...
...
@@ -94,18 +87,19 @@
{% endif %}
</div>
{% endif %}
{% endfor %}
</div>
{% empty %}
No visible students.
{% endfor %}
{% empty %}
<divclass="col-md-12">
<p>No visible students.</p>
</div>
{% endfor %}
</div>
</div>
</div>
<br/>
{% if location_hidden %}
<legendclass="text-center">Location not visible because of student <ahref="{% url 'update_student' request.user.username %}">privacy settings</a></legend>
<legendclass="text-center">Off-campus/Location not visible because of student <ahref="{% url 'update_student' request.user.username %}">privacy settings</a></legend>