diff options
author | lxf <sng@luxagraf.net> | 2020-12-20 13:56:04 -0500 |
---|---|---|
committer | lxf <sng@luxagraf.net> | 2020-12-20 13:56:04 -0500 |
commit | 7fffc511632977dada424c496d67edf9f600dbba (patch) | |
tree | 95cec5cc057ce941067c58ba357f8523fea40d24 /app/books | |
parent | 4b3f15e68a5601c350cc605794eea20050e863fa (diff) |
hid non-public highlights
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> |