From 49807d069f1d0092ab0ec6ada6d2f1c3d69df001 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 30 Sep 2020 11:49:41 -0700 Subject: [PATCH] format multiple book references in a status --- bookwyrm/templates/snippets/status_content.html | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/bookwyrm/templates/snippets/status_content.html b/bookwyrm/templates/snippets/status_content.html index a14ec330f..595870498 100644 --- a/bookwyrm/templates/snippets/status_content.html +++ b/bookwyrm/templates/snippets/status_content.html @@ -3,15 +3,17 @@
{% if not hide_book and status.mention_books.count %}
+
{% for book in status.mention_books.all|slice:"0:4" %} -
- {% include 'snippets/book_cover.html' with book=book %} - {% if status.mention_books.count > 1 %} -

{% include 'snippets/book_titleby.html' with book=book %}

- {% endif %} - {% include 'snippets/shelve_button.html' with book=book %} -
+
+ {% include 'snippets/book_cover.html' with book=book %} + {% if status.mention_books.count > 1 %} +

{% include 'snippets/book_titleby.html' with book=book %}

+ {% endif %} + {% include 'snippets/shelve_button.html' with book=book %} +
{% endfor %} +
{% endif %}