{% extends 'layout.html' %} {% load fr_display %} {% load humanize %} {% block content %}

{% include 'snippets/book_titleby.html' with book=book %}

{% if request.user.is_authenticated and perms.bookwyrm.edit_book %} {% endif %}
{% include 'snippets/book_cover.html' with book=book size=large %} {% include 'snippets/rate_action.html' with user=request.user book=book %} {% include 'snippets/shelve_button.html' %} {% if request.user.is_authenticated and not book.cover %}
{% csrf_token %}
{% endif %}
{% for field in info_fields %} {% if field.value %}
{{ field.name }}:
{{ field.value }}
{% endif %} {% endfor %}

{% include 'snippets/stars.html' with rating=rating %} ({{ reviews|length }} review{{ reviews|length|pluralize }})

{% include 'snippets/book_description.html' %} {% if book.parent_work.edition_set.count > 1 %}

{{ book.parent_work.edition_set.count }} editions

{% endif %}
{% for readthrough in readthroughs %}
{% endfor %} {% if request.user.is_authenticated %}
{% include 'snippets/create_status.html' with book=book hide_cover=True %}

Tags

{% csrf_token %}
{% endif %}
{% for tag in tags %} {% include 'snippets/tag.html' with book=book tag=tag user_tags=user_tags %} {% endfor %}
{% if not reviews %}

No reviews yet!

{% endif %}
{% for review in reviews %}
{% include 'snippets/status.html' with status=review hide_book=True depth=1 %}
{% endfor %}
{% for rating in ratings %}
{% include 'snippets/avatar.html' %}
{% include 'snippets/username.html' %}
rated it
{% include 'snippets/stars.html' with rating=rating.rating %}
{% endfor %}
{% endblock %}