Allow editing comments

This commit is contained in:
David Hoppenbrouwers
2022-10-08 14:11:28 +02:00
parent 47f92b2d83
commit bba6bee92c
5 changed files with 62 additions and 2 deletions

View File

@@ -11,6 +11,7 @@
<a href="{{ url_for('comment', comment_id = comment.parent_id) }}#"> parent</a>
{%- endif -%}
{%- if comment.author_id == session.get('user_id') -%}
<a href="{{ url_for('edit_comment', comment_id = comment.id) }}"> edit</a>
{%- endif -%}
{%- if comment.author_id == session.get('user_id') -%}
<a href="{{ url_for('confirm_delete_comment', comment_id = comment.id) }}"> delete</a>