2021-01-29 08:51:36 -08:00
|
|
|
{% extends 'components/dropdown.html' %}
|
2021-02-27 18:48:10 -08:00
|
|
|
{% load i18n %}
|
2021-01-21 16:43:40 -08:00
|
|
|
{% load bookwyrm_tags %}
|
2021-01-17 11:09:49 -08:00
|
|
|
|
|
|
|
{% block dropdown-trigger %}
|
|
|
|
<span class="icon icon-dots-three">
|
2021-02-27 18:48:10 -08:00
|
|
|
<span class="is-sr-only">{% trans "More options" %}</span>
|
2021-01-17 11:09:49 -08:00
|
|
|
</span>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block dropdown-list %}
|
2021-01-21 16:43:40 -08:00
|
|
|
{% if status.user == request.user %}
|
2021-01-17 11:09:49 -08: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-17 16:48:05 -08:00
|
|
|
<button class="button is-danger is-light is-fullwidth is-small" type="submit">
|
2021-03-02 09:25:45 -08:00
|
|
|
{% trans "Delete status" %}
|
2021-01-17 11:09:49 -08:00
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</li>
|
2021-01-25 14:03:18 -08:00
|
|
|
{% else %}
|
2021-01-29 11:44:04 -08:00
|
|
|
<li role="menuitem">
|
2021-02-27 18:48:10 -08:00
|
|
|
<a href="/direct-messages/{{ status.user|username }}" class="button is-fullwidth is-small">{% trans "Send direct message" %}</a>
|
2021-01-29 11:44:04 -08:00
|
|
|
</li>
|
2021-01-21 16:43:40 -08:00
|
|
|
<li role="menuitem">
|
2021-01-26 13:00:36 -08:00
|
|
|
{% include 'snippets/block_button.html' with user=status.user class="is-fullwidth" %}
|
2021-01-21 16:43:40 -08:00
|
|
|
</li>
|
2021-01-25 14:03:18 -08:00
|
|
|
{% endif %}
|
2021-01-17 11:09:49 -08:00
|
|
|
{% endblock %}
|