make notif collapsing work better with actual replies
parent
042e779ca3
commit
e1d9ab3848
|
@ -513,7 +513,12 @@
|
||||||
<div id="replies-of-{{c.fullname}}">
|
<div id="replies-of-{{c.fullname}}">
|
||||||
{% if request.path.startswith('/notifications') and replies|length > 8 %}
|
{% if request.path.startswith('/notifications') and replies|length > 8 %}
|
||||||
{% for reply in replies %}
|
{% for reply in replies %}
|
||||||
{{single_comment(reply, level=level+1, collapse=(not reply.unread and loop.index != replies|length))}}
|
{% if reply.parent_submission %}
|
||||||
|
{% set collapse = not reply.unread %}
|
||||||
|
{% else %}
|
||||||
|
{% set collapse = not reply.unread and loop.index != replies|length %}
|
||||||
|
{% endif %}
|
||||||
|
{{single_comment(reply, level=level+1, collapse=collapse)}}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% elif request.path.startswith('/notifications') or level < 9 %}
|
{% elif request.path.startswith('/notifications') or level < 9 %}
|
||||||
{% for reply in replies %}
|
{% for reply in replies %}
|
||||||
|
|
Loading…
Reference in New Issue