mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-24 18:47:23 +00:00
#645 - displays '(public)' next to public shelves created by the user
This commit is contained in:
parent
29f6463ed9
commit
d77b52af96
@ -140,7 +140,7 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
<li class="nav-head hidden-xs your-shelves">{{_('Your Shelves')}}</li>
|
<li class="nav-head hidden-xs your-shelves">{{_('Your Shelves')}}</li>
|
||||||
{% for shelf in g.user.shelf %}
|
{% for shelf in g.user.shelf %}
|
||||||
<li><a href="{{url_for('shelf.show_shelf', shelf_id=shelf.id)}}"><span class="glyphicon glyphicon-list private_shelf"></span>{{shelf.name|shortentitle(40)}}</a></li>
|
<li><a href="{{url_for('shelf.show_shelf', shelf_id=shelf.id)}}"><span class="glyphicon glyphicon-list private_shelf"></span>{{shelf.name|shortentitle(40)}}{% if shelf.is_public == 1 %} (public){% endif %}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if not g.user.is_anonymous %}
|
{% if not g.user.is_anonymous %}
|
||||||
<li id="nav_createshelf" class="create-shelf"><a href="{{url_for('shelf.create_shelf')}}">{{_('Create a Shelf')}}</a></li>
|
<li id="nav_createshelf" class="create-shelf"><a href="{{url_for('shelf.create_shelf')}}">{{_('Create a Shelf')}}</a></li>
|
||||||
|
Loading…
Reference in New Issue
Block a user