{% extends "layout.html" %} {% block body %}
{% if entry.has_cover %} {% else %} {% 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')}}: {% for language in entry.languages %} {{language.language_name}}{% if not loop.last %},{% endif %}{% endfor %}

{% endif %} {% if entry.identifiers|length > 0 %}
{% for identifier in entry.identifiers %} {{identifier.formatType()}} {%endfor%}

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

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

{% endif %} {% if entry.pubdate != '0101-01-01 00:00:00' %}

{{_('Publishing date')}}: {{entry.pubdate[:10]}}

{% 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 %} {% if c.datatype == 'bool' %} {% if column.value == true %} {% else %} {% endif %} {% else %} {{ column.value }} {% endif %} {% endif %} {% endfor %}
{% endif %} {% endfor %}

{% endif %} {% if entry.comments|length > 0 and entry.comments[0].text|length > 0%}

{{_('Description:')}}

{{entry.comments[0].text|safe}} {% endif %}

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