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

{{entry.title}}

{% for author in entry.authors %} {{author.name}} {% if not loop.last %} & {% endif %} {% endfor %}

{% 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.languages.__len__() > 0 %}

language: {{entry.languages[0].lang_code}}

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

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

{% endif %} {% if cc|length > 0 %}

{% for c in cc %} {% if entry['custom_column_' ~ c.id]|length > 0 %} {{ c.name }}: {% for column in entry['custom_column_' ~ c.id] %} {% if c.datatype == 'rating' %} {{ '%d' % (column.value / 2) }} {% else %} {{ column.value }} {% endif %} {% endfor %}
{% endif %} {% endfor %}

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

Description:

{{entry.comments[0].text|safe}} {% endif %} {% if g.user.is_authenticated %}

{% if g.user.shelf.all() or g.public_shelfes %} {% endif %} {% if g.user.role_edit() %}
{% endblock %}