diff --git a/bookwyrm/templates/snippets/shelve_button.html b/bookwyrm/templates/snippets/shelve_button.html index 783a039c5..9ebb39ce5 100644 --- a/bookwyrm/templates/snippets/shelve_button.html +++ b/bookwyrm/templates/snippets/shelve_button.html @@ -1,21 +1,22 @@ {% load fr_display %} {% if request.user.is_authenticated %} +
+
+ {% csrf_token %} + + + +
{% endif %} diff --git a/bookwyrm/templates/snippets/status_content.html b/bookwyrm/templates/snippets/status_content.html index 2d9dfa5ab..be7d8935a 100644 --- a/bookwyrm/templates/snippets/status_content.html +++ b/bookwyrm/templates/snippets/status_content.html @@ -1,9 +1,10 @@ {% load fr_display %} -{% if not hide_book and status.mention_books.count %} -
+
+ {% 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 %} @@ -21,9 +22,8 @@
{% endfor %}
-{% endif %} + {% endif %} -
{% if not hide_book and status.book %}
{% include 'snippets/book_cover.html' with book=status.book %}