2021-01-17 19:09:49 +00:00
|
|
|
{% extends 'snippets/components/dropdown.html' %}
|
2021-01-22 00:43:40 +00:00
|
|
|
{% load bookwyrm_tags %}
|
2021-01-17 19:09:49 +00:00
|
|
|
|
|
|
|
{% block dropdown-trigger %}
|
|
|
|
<span class="icon icon-dots-three">
|
|
|
|
<span class="is-sr-only">More options</span>
|
|
|
|
</span>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block dropdown-list %}
|
2021-01-22 00:43:40 +00:00
|
|
|
{% if status.user == request.user %}
|
2021-01-17 19:09:49 +00:00
|
|
|
<li role="menuitem">
|
|
|
|
<form class="dropdown-item pt-0 pb-0" name="delete-{{status.id}}" action="/delete-status/{{ status.id }}" method="post">
|
|
|
|
{% csrf_token %}
|
2021-01-18 00:48:05 +00:00
|
|
|
<button class="button is-danger is-light is-fullwidth is-small" type="submit">
|
2021-01-17 19:09:49 +00:00
|
|
|
Delete post
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</li>
|
2021-01-22 00:43:40 +00:00
|
|
|
<li><hr class="navbar-divider"></li>
|
|
|
|
{% endif %}
|
|
|
|
<li role="menuitem">
|
|
|
|
<form class="dropdown-item pt-0 pb-0" name="delete-{{status.id}}" action="/delete-status/{{ status.id }}" method="post">
|
|
|
|
{% csrf_token %}
|
|
|
|
<button class="button is-danger is-light is-fullwidth is-small" type="submit">
|
|
|
|
Block @{{ status.user|username }}
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</li>
|
2021-01-17 19:09:49 +00:00
|
|
|
{% endblock %}
|