{# bookdetail.html is used for it.page == "book" #} {% extends 'base.html' %} {% block main %}
{% if it.book.hasCover == 1 %}
{{it.c.i18n.coverAlt}} {% endif %}
{% for data in it.book.datas %}
{{data.format}} {% if data.mail == 1 %} {% endif %} {% if data.readerUrl != "" %} {% endif %}
{% endfor %}

{{it.title|escape}}

{% for author in it.book.authors %}{% if not loop.first %}, {% endif %}{{author.name|escape}}{% endfor %}

{% if it.book.seriesName != "" %}

{{it.book.seriesName|escape}} ({{it.book.seriesIndex}})

{% endif %}
{% if it.book.languagesName != "" %}

{{it.c.i18n.languagesTitle}}: {{it.book.languagesName}}

{% endif %} {% if it.book.identifiers != "" %}

{% for id in it.book.identifiers %}{{id.name|escape}} {% endfor %}

{% endif %} {% if it.book.tagsName != "" %}
{% for tag in it.book.tags %}{{tag.name|escape}} {% endfor %}
{% endif %} {% if it.book.rating != "" %}

{{it.c.i18n.ratingTitle}}: {{it.book.rating}}

{% endif %} {% if it.book.publisherName != "" %}

{{it.c.i18n.publisherName}}: {{it.book.publisherName|escape}}

{% endif %} {% if it.book.pubDate != "" %}

{{it.c.i18n.pubdateTitle}}: {{it.book.pubDate}}

{% endif %} {% for column in it.book.customcolumns_preview %}

{{column.customColumnType.columnTitle}}: {% if column.htmlvalue != "" and column.url %} {# @todo handle series, csv text etc. links #} {{column.htmlvalue}} {% else %} {{column.htmlvalue}} {% endif %}

{% endfor %} {% if it.book.extraFiles != "" %}

{{it.c.i18n.filesTitle}}: {% for extraFile in it.book.extraFiles %}{{extraFile.name|escape}} {% endfor %}

{% endif %}
{% if it.book.content != "" %}

{{it.c.i18n.contentTitle}}

{{it.book.content|raw}}
{% endif %}
{% endblock main %}