From d2fc3febb0b063e0bcac6f3585bcbaa1a09c014f Mon Sep 17 00:00:00 2001 From: Mouse Reeve <mousereeve@riseup.net> Date: Tue, 2 Feb 2021 09:44:29 -0800 Subject: [PATCH] Show reading activity panel when no readthroughs exist --- bookwyrm/templates/book.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bookwyrm/templates/book.html b/bookwyrm/templates/book.html index 4a95237c..51811d17 100644 --- a/bookwyrm/templates/book.html +++ b/bookwyrm/templates/book.html @@ -147,7 +147,7 @@ {% endfor %} </div> - {% if readthroughs.exists %} + {% if request.user.is_authenticated %} <section class="block"> <header class="columns"> <h2 class="column title is-5 mb-1">Your reading activity</h2> @@ -155,6 +155,9 @@ {% include 'snippets/toggle/open_button.html' with text="Add read dates" icon="plus" class="is-small" controls_text="add-readthrough" %} </div> </header> + {% if not readthroughs.exists %} + <p>You don't have any reading activity for this book.</p> + {% endif %} <section class="hidden box" id="add-readthrough"> <form name="add-readthrough" action="/create-readthrough" method="post"> {% include 'snippets/readthrough_form.html' with readthrough=None %}