diff --git a/bookwyrm/templates/book.html b/bookwyrm/templates/book.html index ab4d6eec..fe2691f1 100644 --- a/bookwyrm/templates/book.html +++ b/bookwyrm/templates/book.html @@ -78,10 +78,6 @@
On page:
{{ 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 %}
+ {% if show_progress %} + Progress Updates: +
+ {% for progress_update in readthrough.progress_updates %} +
{{ progress_update.date | naturalday }}:
+
{{ progress_update.progress }} of {{ book.pages }}
+ {% endfor %} +
+ {% elif readthrough.progress_updates|length %} + Show {{ readthrough.progress_updates|length }} Progress Updates + {% endif %} diff --git a/bookwyrm/views.py b/bookwyrm/views.py index 94d9366c..9748481a 100644 --- a/bookwyrm/views.py +++ b/bookwyrm/views.py @@ -581,6 +581,7 @@ def book_page(request, book_id): 'tags': tags, 'user_tags': user_tags, 'readthroughs': readthroughs, + 'show_progress': ('showprogress' in request.GET), 'path': '/book/%s' % book_id, 'info_fields': [ {'name': 'ISBN', 'value': book.isbn_13},