Add delete button to comments

This commit is contained in:
David Hoppenbrouwers
2022-10-08 11:00:20 +02:00
parent 55285b82cc
commit 9f74e1a2af
6 changed files with 95 additions and 25 deletions

View File

@@ -1,15 +1,8 @@
{% extends 'base.html' %}
{% from 'comment.html' import render_comment, reply, author as f_author with context %}
{% from 'comment.html' import render_comment, reply, thread_author with context %}
{% block content %}
{% if manage %}
<div>
<form method="get" action="confirm_delete/">
<input type="submit" value="Delete">
</form>
</div>
{% endif %}
<i>{{ f_author(author, create_time, modify_time, None, None) }}</i>
<i>{{ thread_author(author_id, author, create_time, modify_time) }}</i>
<p>{{ minimd(text) | safe }}</p>
{{ reply() }}