diff --git a/brutaldon/templates/main/thread.html b/brutaldon/templates/main/thread.html index dceb97e..27561d2 100644 --- a/brutaldon/templates/main/thread.html +++ b/brutaldon/templates/main/thread.html @@ -18,22 +18,32 @@ mastodon.status_context()

Thread

- {% for op in toots %} - {% if op == IN %} - - {% else %} -
  • - {% if op.toot == toot %} - {% include "main/toot_partial.html" with toot=op.toot active=True %} - {% else %} - {% include "main/toot_partial.html" with toot=op.toot %} - {% endif %} -
  • - {% endif %} - {% endfor %} - + {% if preferences.tree_threads %} + {% for op in toots %} + {% if op == IN %} + + {% else %} +
  • + {% if op.toot == activetoot %} + {% include "main/toot_partial.html" with toot=op.toot active=True %} + {% else %} + {% include "main/toot_partial.html" with toot=op.toot %} + {% endif %} +
  • + {% endif %} + {% endfor %} + {% else %} + {% include "main/toot_partial.html" with toot=root %} + {% for cur in descendants %} + {% if cur == activetoot %} + {% include "main/toot_partial.html" with toot=cur active=True %} + {% else %} + {% include "main/toot_partial.html" with toot=cur %} + {% endif %} + {% endfor %} + {% endif %} {% if not preferences.no_javascript %}