From b762d2c226a4575cab34fd65bbd17870387fcabe Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Tue, 29 Sep 2020 15:05:50 -0700 Subject: [PATCH] Tweaks status page --- bookwyrm/templates/snippets/status.html | 2 +- bookwyrm/templates/snippets/thread.html | 4 ++++ bookwyrm/templates/status.html | 6 ++---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/bookwyrm/templates/snippets/status.html b/bookwyrm/templates/snippets/status.html index d83c8693..00565b3f 100644 --- a/bookwyrm/templates/snippets/status.html +++ b/bookwyrm/templates/snippets/status.html @@ -1,7 +1,7 @@ {% load humanize %} {% load fr_display %} -
+
{% include 'snippets/status_header.html' with status=status %}
diff --git a/bookwyrm/templates/snippets/thread.html b/bookwyrm/templates/snippets/thread.html index 34da43df..ae42c51a 100644 --- a/bookwyrm/templates/snippets/thread.html +++ b/bookwyrm/templates/snippets/thread.html @@ -1,4 +1,6 @@ {% load fr_display %} +
+ {% with depth=depth|add:1 %} {% if depth <= max_depth and status.reply_parent and direction <= 0 %} {% with direction=-1 %} @@ -16,3 +18,5 @@ {% endfor %} {% endif %} {% endwith %} + +
diff --git a/bookwyrm/templates/status.html b/bookwyrm/templates/status.html index 3221b5cd..d38ed89e 100644 --- a/bookwyrm/templates/status.html +++ b/bookwyrm/templates/status.html @@ -1,10 +1,8 @@ {% extends 'layout.html' %} {% block content %} -
-
- {% include 'snippets/thread.html' with status=status depth=0 max_depth=6 is_root=True direction=0 %} -
+
+ {% include 'snippets/thread.html' with status=status depth=0 max_depth=6 is_root=True direction=0 %}
{% endblock %}