null state for block page

This commit is contained in:
Mouse Reeve 2021-01-26 13:02:04 -08:00
parent 22e4138555
commit 369b24f9ec

View file

@ -5,6 +5,9 @@ Blocked Users
{% endblock %}
{% block panel %}
{% if not request.user.blocks.exists %}
<p>No users currently blocked.</p>
{% else %}
<ul>
{% for user in request.user.blocks.all %}
<li class="is-flex">
@ -17,5 +20,5 @@ Blocked Users
</li>
{% endfor %}
</ul>
{% endif %}
{% endblock %}