moviewyrm/bookwyrm/templates/preferences/blocks.html

28 lines
721 B
HTML
Raw Normal View History

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