aboutsummaryrefslogtreecommitdiff
path: root/app/templates/macros/threads.html
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-07-11 03:29:33 +0100
committerrubenwardy <rw@rubenwardy.com>2020-07-11 03:29:38 +0100
commit31b8a7931bdb95b296e236c11705206507b035d8 (patch)
treedafcdca8f5dea95a326c08125f7d035be812ddd9 /app/templates/macros/threads.html
parenta4dd4f04293b6ad6dab5d3dc0a4c52a3290b4394 (diff)
downloadcheatdb-31b8a7931bdb95b296e236c11705206507b035d8.tar.xz
Add ability for moderators to delete comments
Diffstat (limited to 'app/templates/macros/threads.html')
-rw-r--r--app/templates/macros/threads.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/templates/macros/threads.html b/app/templates/macros/threads.html
index f9f298a..32acbc4 100644
--- a/app/templates/macros/threads.html
+++ b/app/templates/macros/threads.html
@@ -22,6 +22,13 @@
</div>
<div class="card-body">
+ {% if r != thread.replies[0] and thread.checkPerm(current_user, "DELETE_REPLY") %}
+ <a class="float-right btn btn-secondary btn-sm"
+ href="{{ url_for('threads.delete_reply', id=thread.id, reply=r.id) }}">
+ <i class="fas fa-trash"></i>
+ </a>
+ {% endif %}
+
{{ r.comment | markdown }}
</div>
</div>