mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-28 12:30:00 +00:00
#645 - displays '(public)' next to user's public shelves in OPDS feed
This commit is contained in:
parent
d77b52af96
commit
7c0d10da79
@ -75,7 +75,11 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% for entry in listelements %}
|
{% for entry in listelements %}
|
||||||
<entry>
|
<entry>
|
||||||
|
{% if entry.__class__.__name__ == 'Shelf' and entry.is_public == 1 %}
|
||||||
|
<title>{{entry.name}} (public)</title>
|
||||||
|
{% else %}
|
||||||
<title>{{entry.name}}</title>
|
<title>{{entry.name}}</title>
|
||||||
|
{% endif %}
|
||||||
<id>{{ url_for(folder, book_id=entry.id) }}</id>
|
<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)}}"/>
|
<link rel="subsection" type="application/atom+xml;profile=opds-catalog" href="{{url_for(folder, book_id=entry.id)}}"/>
|
||||||
</entry>
|
</entry>
|
||||||
|
Loading…
Reference in New Issue
Block a user