From dfbcbbbb476cbbd467cabb1e36ea56ee84c99b43 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 11 Jul 2020 03:52:56 +0100 Subject: Add ability to edit comments --- app/templates/macros/threads.html | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'app/templates/macros/threads.html') diff --git a/app/templates/macros/threads.html b/app/templates/macros/threads.html index e94cded..21283d7 100644 --- a/app/templates/macros/threads.html +++ b/app/templates/macros/threads.html @@ -22,8 +22,20 @@
+ {% if current_user == thread.author and thread.review and thread.replies[0] == r %} + + + + {% elif r.checkPerm(current_user, "EDIT_REPLY") %} + + + + {% endif %} + {% if r.checkPerm(current_user, "DELETE_REPLY") %} - -- cgit v1.2.3