|
|
|
@ -165,11 +165,11 @@
|
|
|
|
|
{% if g.user.is_authenticated or g.user.is_anonymous %}
|
|
|
|
|
<li class="nav-head hidden-xs">{{_('Public Shelves')}}</li>
|
|
|
|
|
{% for shelf in g.public_shelfes %}
|
|
|
|
|
<li><a href="{{url_for('show_shelf', shelf_id=shelf.id)}}"><span class="glyphicon glyphicon-list"></span>{{shelf.name}}</a></li>
|
|
|
|
|
<li><a href="{{url_for('show_shelf', shelf_id=shelf.id)}}"><span class="glyphicon glyphicon-list public_shelf"></span>{{shelf.name|shortentitle(40)}}</a></li>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
<li class="nav-head hidden-xs">{{_('Your Shelves')}}</li>
|
|
|
|
|
{% for shelf in g.user.shelf %}
|
|
|
|
|
<li><a href="{{url_for('show_shelf', shelf_id=shelf.id)}}"><span class="glyphicon glyphicon-list"></span>{{shelf.name}}</a></li>
|
|
|
|
|
<li><a href="{{url_for('show_shelf', shelf_id=shelf.id)}}"><span class="glyphicon glyphicon-list private_shelf"></span>{{shelf.name|shortentitle(40)}}</a></li>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% if not g.user.is_anonymous %}
|
|
|
|
|
<li id="nav_createshelf" class="create-shelf"><a href="{{url_for('create_shelf')}}">{{_('Create a Shelf')}}</a></li>
|
|
|
|
|