Browse Source

Add collapsed classes to deleted comments

Deleted comments weren't collapsing properly, since this wasn't
attaching the classes even if the comments were collapsed by one of the
CommentTree processes.
merge-requests/40/head
Deimos 6 years ago
parent
commit
fd6a8fba0b
  1. 2
      tildes/tildes/templates/macros/comments.jinja2

2
tildes/tildes/templates/macros/comments.jinja2

@ -240,13 +240,13 @@
{% if request.has_permission('view', comment) and comment.is_label_active("exemplary") %}
{% do classes.append("is-comment-exemplary") %}
{% endif %}
{% endif %}
{% if comment.collapsed_state == "full" %}
{% do classes.append("is-comment-collapsed") %}
{% elif comment.collapsed_state == "individual" %}
{% do classes.append("is-comment-collapsed-individual") %}
{% endif %}
{% endif %}
{{ classes|join(' ') }}
{% endmacro %}

Loading…
Cancel
Save