From ce0fab8d2f86e31218ca27e5c516e500b875ed75 Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Tue, 12 May 2020 14:37:13 +0200 Subject: [PATCH] Fix duplicate shelf names in "search" --- 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 196e6885..24ba10c7 100644 --- a/cps/templates/detail.html +++ b/cps/templates/detail.html @@ -242,7 +242,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 %} @@ -259,7 +259,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 @@