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

{{title}}

{% if author is not none %}
{%if author.image_url is not none %} {{author.name}} {% endif %} {%if author.about is not none %}

{{author.about}}

{% endif %} - {{_("via")}} Goodreads
{% endif %}
{% if author is not none %}

{{_("In Library")}}

{% endif %}
{% for entry in entries %}

{{entry.Books.title|shortentitle}}

{% for author in entry.Books.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 %} {% for format in entry.Books.data %} {% if format.format|lower in g.constants.EXTENSIONS_AUDIO %} {% endif %} {% endfor %}

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

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

{% endif %} {% if entry.Books.ratings.__len__() > 0 %}
{% for number in range((entry.Books.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 %}
{% if other_books and author is not none %}

{{_("More by")}} {{ author.name.replace('|',',') }}

{% for entry in other_books %}

{{entry.title|shortentitle}}

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

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

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

{% endif %}
{% for number in range((entry.average_rating)|float|round|int(2)) %} {% if loop.last and loop.index < 5 %} {% for numer in range(5 - loop.index) %} {% endfor %} {% endif %} {% endfor %}
{% endfor %}
Goodreads
{% endif %} {% endblock %}