Handles delete and redraft replies

This commit is contained in:
Mouse Reeve
2021-04-04 09:18:52 -07:00
parent 936d68f0ed
commit be8c3b7904
3 changed files with 12 additions and 4 deletions

View File

@ -19,6 +19,10 @@
</div>
{% endif %}
<div class="column is-two-thirds">
{% if draft.reply_parent %}
{% include 'snippets/status/status.html' with status=draft.reply_parent no_interact=True %}
{% endif %}
{% if not draft %}
{% include 'snippets/create_status.html' %}
{% else %}
@ -26,6 +30,5 @@
{% endif %}
</div>
</div>
{{ form.ap_p }}
{% endwith %}
{% endblock %}

View File

@ -27,7 +27,8 @@
{% trans "Delete status" %}
</button>
</form>
{% elif no_interact %}
{# nothing here #}
{% elif request.user.is_authenticated %}
<div class="field has-addons">
<div class="control">