From 716ab3a78d4b7641b4e08fb273c4b66c6d3df168 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 9 Nov 2020 11:16:39 -0800 Subject: [PATCH] make the start reading button always use the modal are the modals good??? who knows --- bookwyrm/templates/snippets/shelve_button.html | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/bookwyrm/templates/snippets/shelve_button.html b/bookwyrm/templates/snippets/shelve_button.html index ff0c660fb..3b924324b 100644 --- a/bookwyrm/templates/snippets/shelve_button.html +++ b/bookwyrm/templates/snippets/shelve_button.html @@ -1,9 +1,9 @@ {% load fr_display %} {% if request.user.is_authenticated %} -{% with book.id|uuid as uuid %} {% active_shelf book as active_shelf %}
+ {% with book.id|uuid as uuid %} {% if active_shelf.identifier == 'read' %} {% endif %} + {% endwith %}
-{% endwith %} {% endif %}