moviewyrm/bookwyrm/templates/snippets/status/status_options.html

30 lines
945 B
HTML
Raw Normal View History

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 %}
{% 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>
</span>
{% endblock %}
{% block dropdown-list %}
2021-01-22 00:43:40 +00:00
{% 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">
2021-02-28 02:48:10 +00:00
{% trans "Delete post" %}
</button>
</form>
</li>
2021-01-25 22:03:18 +00:00
{% else %}
2021-01-29 19:44:04 +00:00
<li role="menuitem">
2021-02-28 02:48:10 +00:00
<a href="/direct-messages/{{ status.user|username }}" class="button is-fullwidth is-small">{% trans "Send direct message" %}</a>
2021-01-29 19:44:04 +00:00
</li>
2021-01-22 00:43:40 +00:00
<li role="menuitem">
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 %}
{% endblock %}