2021-02-27 21:48:10 -05:00
|
|
|
{% load i18n %}
|
2021-05-22 23:36:30 -04:00
|
|
|
{% if not blocks %}
|
2021-01-25 17:03:18 -05:00
|
|
|
<form name="blocks" method="post" action="/block/{{ user.id }}">
|
|
|
|
{% csrf_token %}
|
2021-02-27 21:48:10 -05:00
|
|
|
<button class="button is-danger is-light is-small {{ class }}" type="submit">{% trans "Block" %}</button>
|
2021-01-25 17:03:18 -05:00
|
|
|
</form>
|
|
|
|
{% else %}
|
|
|
|
<form name="unblocks" method="post" action="/unblock/{{ user.id }}">
|
|
|
|
{% csrf_token %}
|
2021-02-27 21:48:10 -05:00
|
|
|
<button class="button is-small {{ class }}" type="submit">{% trans "Un-block" %}</button>
|
2021-01-25 17:03:18 -05:00
|
|
|
</form>
|
|
|
|
{% endif %}
|