{% extends "layout.html" %} {% block body %}

{{title}}

{% if g.user.role_download() %} {{ _('Download') }} {% endif %} {% if g.user.is_authenticated %} {% if (g.user.role_edit_shelfs() and shelf.is_public ) or not shelf.is_public %}
{{ _('Delete this Shelf') }}
{{ _('Edit Shelf Properties') }} {% if entries.__len__() %} {{ _('Arrange books manually') }} {% endif %} {% endif %} {% endif %}
{% for entry in entries %}

{{entry.title|shortentitle}}

{% for author in entry.ordered_authors %} {% if loop.index > g.config_authors_max and g.config_authors_max != 0 %} {% if not loop.first %} & {% endif %} {{author.name.replace('|',',')|shortentitle(30)}} {% if loop.last %} (...) {% endif %} {% else %} {% if not loop.first %} & {% endif %} {{author.name.replace('|',',')|shortentitle(30)}} {% endif %} {% endfor %}

{% if entry.series.__len__() > 0 %}

{{entry.series[0].name}} ({{entry.series_index|formatseriesindex}})

{% endif %} {% if entry.ratings.__len__() > 0 %}
{% for number in range((entry.ratings[0].rating/2)|int(2)) %} {% if loop.last and loop.index < 5 %} {% for numer in range(5 - loop.index) %} {% endfor %} {% endif %} {% endfor %}
{% endif %}
{% endfor %}
{% endblock %} {% block modal %} {{ delete_confirm_modal() }} {% endblock %}