From 3c7c8a179798039bcf5ba681b150e3ca79cff0b2 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Wed, 9 Jun 2021 11:05:05 -0700 Subject: [PATCH] Fixes urls in fallback mode --- .../snippets/shelve_button/shelve_button_options.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bookwyrm/templates/snippets/shelve_button/shelve_button_options.html b/bookwyrm/templates/snippets/shelve_button/shelve_button_options.html index 12c8a637..d57ad520 100644 --- a/bookwyrm/templates/snippets/shelve_button/shelve_button_options.html +++ b/bookwyrm/templates/snippets/shelve_button/shelve_button_options.html @@ -9,7 +9,7 @@ {% if shelf.identifier == 'reading' %}{% if not dropdown or active_shelf.shelf.identifier|next_shelf != shelf.identifier %} {% trans "Start reading" as button_text %} - {% url 'start-reading' book.id as fallback_url %} + {% url 'reading-progress' 'start' book.id as fallback_url %} {% include 'snippets/toggle/toggle_button.html' with class=class text=button_text controls_text="start-reading" controls_uid=button_uuid focus="modal-title-start-reading" disabled=is_current fallback_url=fallback_url %} {% endif %}{% elif shelf.identifier == 'read' and active_shelf.shelf.identifier == 'read' %}{% if not dropdown or active_shelf.shelf.identifier|next_shelf != shelf.identifier %} @@ -17,13 +17,13 @@ {% endif %}{% elif shelf.identifier == 'read' %}{% if not dropdown or active_shelf.shelf.identifier|next_shelf != shelf.identifier %} {% trans "Finish reading" as button_text %} - {% url 'finish-reading' book.id as fallback_url %} + {% url 'reading-progress' 'finish' book.id as fallback_url %} {% include 'snippets/toggle/toggle_button.html' with class=class text=button_text controls_text="finish-reading" controls_uid=button_uuid focus="modal-title-finish-reading" disabled=is_current fallback_url=fallback_url %} {% endif %}{% elif shelf.identifier == 'to-read' %}{% if not dropdown or active_shelf.shelf.identifier|next_shelf != shelf.identifier %} {% trans "Want to read" as button_text %} - {% url 'to-read' book.id as fallback_url %} + {% url 'reading-progress' 'want' book.id as fallback_url %} {% include 'snippets/toggle/toggle_button.html' with class=class text=button_text controls_text="want-to-read" controls_uid=button_uuid focus="modal-title-want-to-read" disabled=is_current fallback_url=fallback_url %} {% endif %}{% elif shelf.editable %}