diff options
Diffstat (limited to 'app/books')
-rw-r--r-- | app/books/templates/books/book_detail.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/books/templates/books/book_detail.html b/app/books/templates/books/book_detail.html index 98b2c60..1dad0fc 100644 --- a/app/books/templates/books/book_detail.html +++ b/app/books/templates/books/book_detail.html @@ -42,7 +42,7 @@ {% if object.bookhighlight_set.all %} <div class="highlights"> <h4>Highlights:</h4> - {% for object in object.bookhighlight_set.all %} + {% for object in object.bookhighlight_set.all %}{% if object.is_public %} <div class="h-entry hentry post--article book"> <a class="highlink" id="h{{forloop.counter}}-page-{{object.page}}" href="#h{{forloop.counter}}-page-{{object.page}}">¶</a> <div class="book-highlight"> @@ -50,7 +50,7 @@ </div> <p class="foot">– Page: {{object.page}} {% if object.location %}(Kindle location: {{object.location|cut:"["|cut:"]"}}){%endif%}</p> </div> - {% endfor %} + {% endif %}{% endfor %} </div> {%endif%} </main> |