forked from rDrama/rDrama
fix
parent
d79a88b028
commit
b00a9e8e85
|
@ -511,22 +511,19 @@
|
|||
|
||||
{% if render_replies %}
|
||||
<div id="replies-of-{{c.fullname}}">
|
||||
{% if request.path.startswith('/notifications') %}
|
||||
{% if replies|length > 8 %}
|
||||
{% for reply in replies %}
|
||||
{% if reply.parent_submission %}
|
||||
{% set collapse = reply.collapse %}
|
||||
{% else %}
|
||||
{% set collapse = not reply.unread and loop.index != replies|length %}
|
||||
{% endif %}
|
||||
|
||||
{{single_comment(reply, level=level+1, collapse=collapse)}}
|
||||
{% endfor %}
|
||||
{% elif level < 9 %}
|
||||
{% for reply in replies %}
|
||||
{{single_comment(reply, level=level+1)}}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if request.path.startswith('/notifications') and replies|length > 8 %}
|
||||
{% for reply in replies %}
|
||||
{% if reply.parent_submission %}
|
||||
{% set collapse = reply.collapse %}
|
||||
{% else %}
|
||||
{% set collapse = not reply.unread and loop.index != replies|length %}
|
||||
{% endif %}
|
||||
{{single_comment(reply, level=level+1, collapse=collapse)}}
|
||||
{% endfor %}
|
||||
{% elif request.path.startswith('/notifications') or level < 9 %}
|
||||
{% for reply in replies %}
|
||||
{{single_comment(reply, level=level+1)}}
|
||||
{% endfor %}
|
||||
{% elif replies %}
|
||||
<button type="button" id="btn-{{c.id}}" class="d-mob-none btn btn-primary mt-3" data-nonce="{{g.nonce}}" data-onclick="more_comments('{{c.id}}', '{{sort}}')">More comments</button>
|
||||
<a class="d-md-none py-3" href="{{c.more_comments}}">More comments <i class="fas fa-long-arrow-right ml-1"></i></a>
|
||||
|
|
Loading…
Reference in New Issue