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 %} {% endblock %}
{% block panel %} {% block panel %}
{% if not request.user.blocks.exists %}
<p>No users currently blocked.</p>
{% else %}
<ul> <ul>
{% for user in request.user.blocks.all %} {% for user in request.user.blocks.all %}
<li class="is-flex"> <li class="is-flex">
@ -15,7 +18,7 @@ Blocked Users
{% include 'snippets/block_button.html' with user=user %} {% include 'snippets/block_button.html' with user=user %}
</p> </p>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %}
{% endblock %} {% endblock %}