From c6362c49ab64e95b04630e84157bfdf85f15da8f Mon Sep 17 00:00:00 2001 From: Deimos Date: Wed, 22 Aug 2018 13:46:41 -0600 Subject: [PATCH] Show "comment removed" warning to non-admins --- tildes/scss/modules/_comment.scss | 6 ++++++ tildes/tildes/templates/macros/comments.jinja2 | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/tildes/scss/modules/_comment.scss b/tildes/scss/modules/_comment.scss index 64aa7f6..ca40275 100644 --- a/tildes/scss/modules/_comment.scss +++ b/tildes/scss/modules/_comment.scss @@ -88,6 +88,12 @@ overflow: auto; } +.comment-removed-warning { + color: $warning-color; + font-weight: bold; + font-size: 0.6rem; +} + .comment-votes { font-size: 0.6rem; font-weight: bold; diff --git a/tildes/tildes/templates/macros/comments.jinja2 b/tildes/tildes/templates/macros/comments.jinja2 index 2a5ebaf..ea02df7 100644 --- a/tildes/tildes/templates/macros/comments.jinja2 +++ b/tildes/tildes/templates/macros/comments.jinja2 @@ -99,8 +99,8 @@ data-js-external-links-new-tabs {% endif %} > - {% if comment.is_removed and 'admin' in request.effective_principals %} -

Comment removed

+ {% if comment.is_removed %} +

This comment has been removed and is not visible to other users

{% endif %} {{ comment.rendered_html|safe }}