From 6e05dfde927fd6918f839005dab8a222b8ebcb76 Mon Sep 17 00:00:00 2001 From: Joel Bradshaw Date: Sun, 17 Jan 2021 12:40:24 -0800 Subject: [PATCH] Revert "Make the switching work, wows" Actually this is bad, switching on this page is not useful enough for the UI complexity. Users can switch percent/pages on the book page. This reverts commit a4796cf5c5d87207f83ef1d7230edb4701fb431f. --- .../templates/snippets/progress_update.html | 51 +++++++------------ 1 file changed, 18 insertions(+), 33 deletions(-) diff --git a/bookwyrm/templates/snippets/progress_update.html b/bookwyrm/templates/snippets/progress_update.html index 79cbf159..6936429d 100644 --- a/bookwyrm/templates/snippets/progress_update.html +++ b/bookwyrm/templates/snippets/progress_update.html @@ -1,40 +1,25 @@
{% csrf_token %} - -
- - +
+ {% if readthrough.progress_mode == 'PG' %} + on page + {% else %} + currently at + {% endif %}
-
- - +
+ +
+
+ {% if readthrough.progress_mode == 'PG' and book.pages %} + of {{ book.pages }} + {% else %} + % + {% endif %}