{% extends "layout.html" %} {% block body %}
{% if entry.has_cover is defined %} {% endif %}

{{entry.title}}

{{entry.authors[0].name}}

{% 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 %} {% if entry.series|length > 0 %}

Book {{entry.series_index}} of {{entry.series[0].name}}

{% endif %} {% if entry.tags|length > 0 %}

{% for tag in entry.tags %} {{tag.name}}, {%endfor%}

{% endif %} {% if entry.comments|length > 0 %}

Description:

{{entry.comments[0].text|safe}} {% endif %} {% if g.user.is_authenticated() %}
    {% if g.user.kindle_mail %}
  • Send to Kindle
  • {% endif %}
  • Read in Browser
  • {% if g.user.shelf.all() or g.public_shelfes %}
  • {% endif %} {% if books_shelfs %}
  • {% endif %} {% if g.user.roleĀ %}
  • Edit book
  • Delete book
  • {% endif %} {% endif %}
{% endblock %}