LIL-33. Hide deactivated comments with childs

remotes/origin/hasaccess
Ivlev Denis 8 years ago
parent 479d4a72d7
commit b604b5bb03
  1. 7
      apps/course/templates/course/blocks/comments.html

@ -1,5 +1,10 @@
{% load mptt_tags %}
{% recursetree object.comments.all %}
{% if not node.deactivated_at %}
{% include './comment.html' %}
{{ children }} {% endrecursetree %}
{% if not node.is_leaf_node %}
{{ children }}
{% endif %}
{% endif %}
{% endrecursetree %}

Loading…
Cancel
Save