2021-06-14 12:57:51 -04:00
|
|
|
{% extends 'preferences/layout.html' %}
|
2021-02-27 21:48:10 -05:00
|
|
|
{% load i18n %}
|
2021-01-26 12:56:01 -05:00
|
|
|
|
2021-02-28 13:00:36 -05:00
|
|
|
{% block title %}{% trans "Blocked Users" %}{{ author.name }}{% endblock %}
|
|
|
|
|
2021-01-26 12:56:01 -05:00
|
|
|
{% block header %}
|
2021-02-27 21:48:10 -05:00
|
|
|
{% trans "Blocked Users" %}
|
2021-01-26 12:56:01 -05:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block panel %}
|
2021-01-26 16:02:04 -05:00
|
|
|
{% if not request.user.blocks.exists %}
|
2021-09-28 14:29:42 -04:00
|
|
|
<p><em>{% trans "No users currently blocked." %}</em></p>
|
2021-01-26 16:02:04 -05:00
|
|
|
{% else %}
|
2021-01-26 12:56:01 -05:00
|
|
|
<ul>
|
|
|
|
{% for user in request.user.blocks.all %}
|
|
|
|
<li class="is-flex">
|
|
|
|
<p>
|
2021-03-07 13:24:46 -05:00
|
|
|
<a href="{{ user.local_path }}">{% include 'snippets/avatar.html' with user=user %} {{ user.display_name }}</a>
|
2021-01-26 12:56:01 -05:00
|
|
|
</p>
|
|
|
|
<p class="mr-2">
|
2021-05-22 23:36:30 -04:00
|
|
|
{% include 'snippets/block_button.html' with user=user blocks=True %}
|
2021-01-26 12:56:01 -05:00
|
|
|
</p>
|
|
|
|
</li>
|
2021-01-26 16:02:04 -05:00
|
|
|
{% endfor %}
|
2021-01-26 12:56:01 -05:00
|
|
|
</ul>
|
2021-01-26 16:02:04 -05:00
|
|
|
{% endif %}
|
2021-01-26 12:56:01 -05:00
|
|
|
{% endblock %}
|