moviewyrm/bookwyrm/templates/snippets/report_button.html

18 lines
424 B
HTML
Raw Normal View History

2021-03-09 02:36:34 +00:00
{% load i18n %}
2021-05-11 21:41:28 +00:00
{% load utilities %}
2021-03-12 01:38:21 +00:00
{% with 0|uuid as report_uuid %}
2021-12-31 02:37:49 +00:00
{% join "report" report_uuid as modal_id %}
<button
class="button is-small is-danger is-light is-fullwidth"
type="button"
data-modal-open="{{ modal_id }}"
{% if is_current %}disabled{% endif %}
>
{% trans "Report" %}
</button>
2022-02-24 20:48:52 +00:00
{% include 'snippets/report_modal.html' with user=user id=modal_id status_id=status.id %}
2021-03-12 01:38:21 +00:00
{% endwith %}