From 7c0d10da796737f9c1f829c89914ff93b1a92e94 Mon Sep 17 00:00:00 2001 From: Niktia Pchelin Date: Sun, 16 Feb 2020 22:47:32 -0500 Subject: [PATCH] #645 - displays '(public)' next to user's public shelves in OPDS feed --- cps/templates/feed.xml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cps/templates/feed.xml b/cps/templates/feed.xml index 37b7765e..089ca65b 100644 --- a/cps/templates/feed.xml +++ b/cps/templates/feed.xml @@ -75,7 +75,11 @@ {% endif %} {% for entry in listelements %} + {% if entry.__class__.__name__ == 'Shelf' and entry.is_public == 1 %} + {{entry.name}} (public) + {% else %} {{entry.name}} + {% endif %} {{ url_for(folder, book_id=entry.id) }}