From bf927c50f00bd15c7bc1765b7d5fb0c6a6abeb86 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 11 Jul 2020 01:34:51 +0100 Subject: Add the ability to lock threads --- app/templates/macros/threads.html | 30 +++++++++++++++++++++++------- 1 file changed, 23 insertions(+), 7 deletions(-) (limited to 'app/templates/macros/threads.html') diff --git a/app/templates/macros/threads.html b/app/templates/macros/threads.html index 4732af2..f9f298a 100644 --- a/app/templates/macros/threads.html +++ b/app/templates/macros/threads.html @@ -8,7 +8,7 @@ -
+
+{% if thread.locked %} +

+ + {{ _("This thread has been locked by a moderator.") }} +

+{% endif %} + {% if current_user.is_authenticated %}
- {% if current_user.canCommentRL() %} + {% if not current_user.canCommentRL() %} +
+
+ +
+ {% elif not thread.checkPerm(current_user, "COMMENT_THREAD") %} +
+ {% if thread.locked %} +
+ {% else %} +
+ {% endif %} + +
+ {% else %}

- {% else %} -
-
- -
{% endif %}
-- cgit v1.2.3