From 4d843b583dfcc166ee757a999e8213286fcdf8fc Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Sat, 9 Jul 2022 10:32:04 +1000 Subject: [PATCH] move shelve button tour id to prevent duplicates --- bookwyrm/templates/book/book.html | 2 +- bookwyrm/templates/snippets/shelve_button/shelve_button.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bookwyrm/templates/book/book.html b/bookwyrm/templates/book/book.html index 6613d397b..ce5e96873 100644 --- a/bookwyrm/templates/book/book.html +++ b/bookwyrm/templates/book/book.html @@ -113,7 +113,7 @@ {% include 'snippets/rate_action.html' with user=request.user book=book %} -
+
{% include 'snippets/shelve_button/shelve_button.html' %}
diff --git a/bookwyrm/templates/snippets/shelve_button/shelve_button.html b/bookwyrm/templates/snippets/shelve_button/shelve_button.html index 93655d561..010bff055 100644 --- a/bookwyrm/templates/snippets/shelve_button/shelve_button.html +++ b/bookwyrm/templates/snippets/shelve_button/shelve_button.html @@ -7,7 +7,7 @@ {% active_shelf book as active_shelf %} {% latest_read_through book request.user as readthrough %} {% with active_shelf_book=active_shelf.book %} -
+
{% if switch_mode and active_shelf_book != book %}
{% include 'snippets/switch_edition_button.html' with edition=book size='is-small' %}