forked from mirrors/bookwyrm
25 lines
741 B
HTML
25 lines
741 B
HTML
{% extends 'components/dropdown.html' %}
|
|
{% load bookwyrm_tags %}
|
|
|
|
{% block dropdown-trigger %}
|
|
<span class="icon icon-dots-three">
|
|
<span class="is-sr-only">More options</span>
|
|
</span>
|
|
{% endblock %}
|
|
|
|
{% block dropdown-list %}
|
|
{% if status.user == request.user %}
|
|
<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">
|
|
Delete post
|
|
</button>
|
|
</form>
|
|
</li>
|
|
{% else %}
|
|
<li role="menuitem">
|
|
{% include 'snippets/block_button.html' with user=status.user class="is-fullwidth" %}
|
|
</li>
|
|
{% endif %}
|
|
{% endblock %}
|