moviewyrm/bookwyrm/templates/snippets/block_button.html
Mouse Reeve acfc865d4e Adds blocked users view
also refactors the setting view
2021-01-26 10:01:50 -08:00

11 lines
436 B
HTML

{% if not user in request.user.blocks.all %}
<form name="blocks" method="post" action="/block/{{ user.id }}">
{% csrf_token %}
<button class="button is-danger is-light is-small {{ class }}" type="submit">Block</button>
</form>
{% else %}
<form name="unblocks" method="post" action="/unblock/{{ user.id }}">
{% csrf_token %}
<button class="button is-small {{ class }}" type="submit">Un-block</button>
</form>
{% endif %}