From aba5c48af9225460425f006c86ed338c929a8bcb Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sun, 17 Jan 2021 17:22:03 -0800 Subject: [PATCH] uses "plus" button for adding read dates --- bookwyrm/templates/book.html | 34 ++++++++++++-------- bookwyrm/templates/snippets/readthrough.html | 4 +-- 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/bookwyrm/templates/book.html b/bookwyrm/templates/book.html index e12ba30da..be5f6397b 100644 --- a/bookwyrm/templates/book.html +++ b/bookwyrm/templates/book.html @@ -148,25 +148,31 @@ {% if readthroughs.exists %} -
-

Your reading activity

- {% for readthrough in readthroughs %} - {% include 'snippets/readthrough.html' with readthrough=readthrough %} - {% endfor %} -
- {% endif %} -
- {% include 'snippets/toggle/open_button.html' with text="Add read dates" controls_text="add-readthrough" %} - -
+ + {% for readthrough in readthroughs %} + {% include 'snippets/readthrough.html' with readthrough=readthrough %} + {% endfor %} + + {% endif %} {% if request.user.is_authenticated %}
diff --git a/bookwyrm/templates/snippets/readthrough.html b/bookwyrm/templates/snippets/readthrough.html index 56c22a927..d684943e8 100644 --- a/bookwyrm/templates/snippets/readthrough.html +++ b/bookwyrm/templates/snippets/readthrough.html @@ -1,5 +1,5 @@ {% load humanize %} -
+
{% if readthrough.start_date %} @@ -34,5 +34,5 @@ {% include 'snippets/toggle/close_button.html' with text="Cancel" controls_text="edit-readthrough" controls_uid=readthrough.id %}
-
+ {% include 'snippets/delete_readthrough_modal.html' with controls_text="delete-readthrough" controls_uid=readthrough.id %}