1
0
Fork 0

Threaded-view on status pages

It's hideous though, sorry
This commit is contained in:
Mouse Reeve 2020-03-09 17:03:59 -07:00
parent a0f1880f37
commit 2215e0a894
11 changed files with 91 additions and 47 deletions

View file

@ -0,0 +1,18 @@
{% 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 %}