From 93d59c33ffbf15618693f113536cc0a1fcb89054 Mon Sep 17 00:00:00 2001 From: Hugh Rundle Date: Sun, 2 Jan 2022 13:09:40 +1100 Subject: [PATCH] only show own shelves in shelf_selector dropdown --- bookwyrm/templates/snippets/shelf_selector.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bookwyrm/templates/snippets/shelf_selector.html b/bookwyrm/templates/snippets/shelf_selector.html index f96f48a89..9a3fd2ce9 100644 --- a/bookwyrm/templates/snippets/shelf_selector.html +++ b/bookwyrm/templates/snippets/shelf_selector.html @@ -63,16 +63,18 @@ {% endfor %} {% if shelf.identifier == 'all' %} -{% for shelved_in in book.shelves.all %} +{% for user_shelf in user_shelves %} +{% if user_shelf in book.shelves.all %} +{% endif %} {% endfor %} {% else %}