1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-07-04 11:03:16 +00:00

#645 - displays '(public)' next to user's public shelves in OPDS feed

This commit is contained in:
Niktia Pchelin 2020-02-16 22:47:32 -05:00
parent d77b52af96
commit 7c0d10da79

View File

@ -75,7 +75,11 @@
{% endif %}
{% for entry in listelements %}
<entry>
{% if entry.__class__.__name__ == 'Shelf' and entry.is_public == 1 %}
<title>{{entry.name}} (public)</title>
{% else %}
<title>{{entry.name}}</title>
{% endif %}
<id>{{ url_for(folder, book_id=entry.id) }}</id>
<link rel="subsection" type="application/atom+xml;profile=opds-catalog" href="{{url_for(folder, book_id=entry.id)}}"/>
</entry>