forked from mirrors/bookwyrm
25 lines
771 B
HTML
25 lines
771 B
HTML
{% load status_display %}
|
|
|
|
<div class="thread-parent is-relative block">
|
|
<div class="thread">
|
|
{% with depth=depth|add:1 %}
|
|
{% if depth <= max_depth and status.reply_parent and direction <= 0 %}
|
|
{% with direction=-1 %}
|
|
{% include 'feed/thread.html' with status=status|parent is_root=False %}
|
|
{% endwith %}
|
|
{% endif %}
|
|
|
|
<div{% if is_root %} class="block mt-5 is-main"{% endif %}>
|
|
{% include 'snippets/status/status.html' with status=status main=is_root %}
|
|
</div>
|
|
|
|
{% if depth <= max_depth and direction >= 0 %}
|
|
{% for reply in status|replies %}
|
|
{% with direction=1 %}
|
|
{% include 'feed/thread.html' with status=reply is_root=False %}
|
|
{% endwith %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endwith %}
|
|
</div>
|
|
</div>
|