mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-30 03:50:40 +00:00
2215e0a894
It's hideous though, sorry
18 lines
615 B
HTML
18 lines
615 B
HTML
{% load fr_display %}
|
|
{% with depth=depth|add:1 %}
|
|
{% if depth <= max_depth and status.reply_parent and direction <= 0 %}
|
|
{% with direction=-1 %}
|
|
{% include 'snippets/thread.html' with status=status|parent is_root=False %}
|
|
{% endwith %}
|
|
{% endif %}
|
|
|
|
{% include 'snippets/status.html' with status=status main=is_root %}
|
|
|
|
{% if depth <= max_depth and direction >= 0 %}
|
|
{% for reply in status|replies %}
|
|
{% with direction=1 %}
|
|
{% include 'snippets/thread.html' with status=reply is_root=False %}
|
|
{% endwith %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
{% endwith %}
|