Browse Source

Prioritize showing comment removal over deletion

If a comment is removed and then deleted by its author, we should
continue showing it as removed, since that's the more significant action
(and the deletion is usually *because* of the removal).
merge-requests/106/head
Deimos 5 years ago
parent
commit
e15359919d
  1. 6
      tildes/tildes/templates/macros/comments.jinja2

6
tildes/tildes/templates/macros/comments.jinja2

@ -72,14 +72,14 @@
{% endif %}
</div>
{% else %}
{% if comment.is_deleted %}
<div class="is-comment-deleted">Comment deleted by author</div>
{% elif comment.is_removed %}
{% if comment.is_removed %}
{% if comment.removed_marker %}
<div class="is-comment-removed">{{ comment.removed_marker }}</div>
{% else %}
<div class="is-comment-removed">Comment removed by site admin</div>
{% endif %}
{% elif comment.is_deleted %}
<div class="is-comment-deleted">Comment deleted by author</div>
{% endif %}
{% endif %}

Loading…
Cancel
Save