2021-01-25 22:03:18 +00:00
|
|
|
{% if not user in request.user.blocks.all %}
|
|
|
|
<form name="blocks" method="post" action="/block/{{ user.id }}">
|
|
|
|
{% csrf_token %}
|
2021-01-26 17:56:01 +00:00
|
|
|
<button class="button is-danger is-light is-small {{ class }}" type="submit">Block</button>
|
2021-01-25 22:03:18 +00:00
|
|
|
</form>
|
|
|
|
{% else %}
|
|
|
|
<form name="unblocks" method="post" action="/unblock/{{ user.id }}">
|
|
|
|
{% csrf_token %}
|
2021-01-26 17:56:01 +00:00
|
|
|
<button class="button is-small {{ class }}" type="submit">Un-block</button>
|
2021-01-25 22:03:18 +00:00
|
|
|
</form>
|
|
|
|
{% endif %}
|