From f7269d8df2038b33f81fe6eb56ccd7f4bd36c60b Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Tue, 12 May 2020 14:39:13 +0200 Subject: [PATCH] Fix for #1385 (Private shelves are listed twice in the "Add to shelf" dropdown menu) --- cps/templates/detail.html | 4 ++-- cps/templates/search.html | 11 ++++------- 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/cps/templates/detail.html b/cps/templates/detail.html index 8315a8f2..32b215f9 100644 --- a/cps/templates/detail.html +++ b/cps/templates/detail.html @@ -240,7 +240,7 @@ data-remove-href="{{ url_for('shelf.remove_from_shelf', book_id=entry.id, shelf_id=shelf.id) }}" data-shelf-action="add" > - {{shelf.name}} + {{shelf.name}}{% if shelf.is_public == 1 %} {{_('(Public)')}}{% endif %} {% endif %} @@ -257,7 +257,7 @@ > {{shelf.name}} + {% endif %}> {{shelf.name}}{% if shelf.is_public == 1 %} {{_('(Public)')}}{% endif %} {% endif %} {%endfor%} diff --git a/cps/templates/search.html b/cps/templates/search.html index 28eaf184..fa8176e9 100644 --- a/cps/templates/search.html +++ b/cps/templates/search.html @@ -15,14 +15,11 @@