2021-01-29 17:28:00 +00:00
|
|
|
{% extends 'preferences/preferences_layout.html' %}
|
2021-02-28 02:48:10 +00:00
|
|
|
{% load i18n %}
|
2021-01-26 17:56:01 +00:00
|
|
|
|
|
|
|
{% block header %}
|
2021-02-28 02:48:10 +00:00
|
|
|
{% trans "Blocked Users" %}
|
2021-01-26 17:56:01 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block panel %}
|
2021-01-26 21:02:04 +00:00
|
|
|
{% if not request.user.blocks.exists %}
|
2021-02-28 02:48:10 +00:00
|
|
|
<p>{% trans "No users currently blocked." %}</p>
|
2021-01-26 21:02:04 +00:00
|
|
|
{% else %}
|
2021-01-26 17:56:01 +00:00
|
|
|
<ul>
|
|
|
|
{% for user in request.user.blocks.all %}
|
|
|
|
<li class="is-flex">
|
|
|
|
<p>
|
|
|
|
{% include 'snippets/avatar.html' with user=user %} {% include 'snippets/username.html' with user=user %}
|
|
|
|
</p>
|
|
|
|
<p class="mr-2">
|
|
|
|
{% include 'snippets/block_button.html' with user=user %}
|
|
|
|
</p>
|
|
|
|
</li>
|
2021-01-26 21:02:04 +00:00
|
|
|
{% endfor %}
|
2021-01-26 17:56:01 +00:00
|
|
|
</ul>
|
2021-01-26 21:02:04 +00:00
|
|
|
{% endif %}
|
2021-01-26 17:56:01 +00:00
|
|
|
{% endblock %}
|