From f524f0cd4dc20dfb747f3f1ffa7f51233df83bed Mon Sep 17 00:00:00 2001 From: Joel Bradshaw Date: Mon, 16 Nov 2020 23:53:46 -0800 Subject: [PATCH] Add basic view logic for testing --- bookwyrm/templates/book.html | 6 +++++- bookwyrm/views.py | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/bookwyrm/templates/book.html b/bookwyrm/templates/book.html index db3864425..ab4d6eec5 100644 --- a/bookwyrm/templates/book.html +++ b/bookwyrm/templates/book.html @@ -76,8 +76,12 @@
{{ readthrough.finish_date | naturalday }}
{% elif readthrough.pages_read %}
On page:
-
{{ readthrough.pages_read}} of {{ book.pages }}
+
{{ readthrough.pages_read }} of {{ book.pages }}
{% endif %} + {% for progress_update in readthrough.progress_updates %} +
On {{ progress_update.date | naturalday }} you were on:
+
{{ progress_update.progress }} of {{ book.pages }}
+ {% endfor %}