From: rubenwardy Date: Sat, 11 Jul 2020 03:29:59 +0000 (+0100) Subject: Swap edit and delete buttons in comments X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=8d487231583e3597a28cdb348be0b410dd3446ea;p=cheatdb.git Swap edit and delete buttons in comments --- diff --git a/app/templates/macros/threads.html b/app/templates/macros/threads.html index 21283d7..d19aae5 100644 --- a/app/templates/macros/threads.html +++ b/app/templates/macros/threads.html @@ -22,6 +22,13 @@
+ {% if r.checkPerm(current_user, "DELETE_REPLY") %} + + + + {% endif %} + {% if current_user == thread.author and thread.review and thread.replies[0] == r %} @@ -34,13 +41,6 @@ {% endif %} - {% if r.checkPerm(current_user, "DELETE_REPLY") %} - - - - {% endif %} - {{ r.comment | markdown }}