Browse Source

Show "comment removed" warning to non-admins

merge-requests/32/head
Deimos 6 years ago
parent
commit
c6362c49ab
  1. 6
      tildes/scss/modules/_comment.scss
  2. 4
      tildes/tildes/templates/macros/comments.jinja2

6
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;

4
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 %}
<p class="text-warning">Comment removed</p>
{% if comment.is_removed %}
<p class="comment-removed-warning">This comment has been removed and is not visible to other users</p>
{% endif %}
{{ comment.rendered_html|safe }}

Loading…
Cancel
Save