2021-01-29 16:51:36 +00:00
|
|
|
{% extends 'components/dropdown.html' %}
|
2021-02-28 02:48:10 +00:00
|
|
|
{% load i18n %}
|
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">
|
2021-02-28 02:48:10 +00:00
|
|
|
<span class="is-sr-only">{% trans "More options" %}</span>
|
2021-01-17 19:09:49 +00:00
|
|
|
</span>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block dropdown-list %}
|
2021-01-22 00:43:40 +00:00
|
|
|
{% if status.user == request.user %}
|
2021-03-08 23:49:44 +00:00
|
|
|
{# things you can do to your own statuses #}
|
2021-04-21 17:35:50 +00:00
|
|
|
<li role="menuitem" class="dropdown-item p-0">
|
|
|
|
<form name="delete-{{status.id}}" action="/delete-status/{{ status.id }}" method="post">
|
2021-01-17 19:09:49 +00:00
|
|
|
{% csrf_token %}
|
2021-04-21 17:36:11 +00:00
|
|
|
<button class="button is-radiusless is-danger is-light is-fullwidth is-small" type="submit">
|
2021-03-02 17:25:45 +00:00
|
|
|
{% trans "Delete status" %}
|
2021-01-17 19:09:49 +00:00
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</li>
|
2021-04-04 16:08:44 +00:00
|
|
|
{% if status.status_type != 'GeneratedNote' and status.status_type != 'Rating' %}
|
2021-04-21 17:35:50 +00:00
|
|
|
<li role="menuitem" class="dropdown-item p-0">
|
|
|
|
<form class="" name="delete-{{status.id}}" action="{% url 'redraft' status.id %}" method="post">
|
2021-04-03 21:55:13 +00:00
|
|
|
{% csrf_token %}
|
2021-04-21 17:36:11 +00:00
|
|
|
<button class="button is-radiusless is-danger is-light is-fullwidth is-small" type="submit">
|
2021-04-03 21:55:13 +00:00
|
|
|
{% trans "Delete & re-draft" %}
|
|
|
|
</button>
|
|
|
|
</form>
|
|
|
|
</li>
|
2021-04-03 22:47:47 +00:00
|
|
|
{% endif %}
|
2021-01-25 22:03:18 +00:00
|
|
|
{% else %}
|
2021-03-08 23:49:44 +00:00
|
|
|
{# things you can do to other people's statuses #}
|
2021-04-21 17:35:50 +00:00
|
|
|
<li role="menuitem" class="dropdown-item p-0">
|
2021-04-21 19:31:58 +00:00
|
|
|
<a href="{% url 'direct-messages-user' status.user|username %}" class="button is-small is-white is-radiusless is-fullwidth">
|
|
|
|
{% trans "Send direct message" %}
|
|
|
|
</a>
|
2021-01-29 19:44:04 +00:00
|
|
|
</li>
|
2021-04-21 17:35:50 +00:00
|
|
|
<li role="menuitem" class="dropdown-item p-0">
|
2021-03-12 01:38:21 +00:00
|
|
|
{% include 'snippets/report_button.html' with user=status.user status=status %}
|
2021-03-08 23:49:44 +00:00
|
|
|
</li>
|
2021-04-21 17:35:50 +00:00
|
|
|
<li role="menuitem" class="dropdown-item p-0">
|
2021-01-26 21:00:36 +00:00
|
|
|
{% include 'snippets/block_button.html' with user=status.user class="is-fullwidth" %}
|
2021-01-22 00:43:40 +00:00
|
|
|
</li>
|
2021-01-25 22:03:18 +00:00
|
|
|
{% endif %}
|
2021-01-17 19:09:49 +00:00
|
|
|
{% endblock %}
|