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">
@ -15,7 +18,7 @@ Blocked Users
{% include 'snippets/block_button.html' with user=user %}
</p>
</li>
{% endfor %}
{% endfor %}
</ul>
{% endif %}
{% endblock %}