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

{% include 'snippets/book_titleby.html' with book=book %} {% if request.user.is_authenticated %} edit 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 %} {{ cover_form.as_p }}
{% endif %}
{% for field in info_fields %} {% if field.value %}
{{ field.name }}:
{{ field.value }}
{% endif %} {% endfor %}

{{ active_tab }} rating: {% include 'snippets/stars.html' with rating=rating %}

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

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

{% endif %} {% if request.user.is_authenticated %}

Leave a review

{% csrf_token %} {% include 'snippets/rate_form.html' with book=book %} {{ review_form.as_p }}

Tags

{% csrf_token %}
{% for tag in tags %} {% include 'snippets/tag.html' with book=book tag=tag user_tags=user_tags %} {% endfor %}
{% endif %}
{% if request.user.is_authenticated %}
{% include 'snippets/tabs.html' with tabs=feed_tabs active_tab=active_tab path=path %}
{% endif %} {% if not reviews %}

No reviews yet!

{% endif %} {% for review in reviews %}
{% include 'snippets/status.html' with status=review hide_book=True depth=1 %}
{% endfor %} {% endblock %}