bookwyrm-mastodon/bookwyrm/templates/snippets/status/status_options.html

45 lines
1.5 KiB
HTML
Raw Normal View History

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