{% extends 'layout.html' %} {% load i18n %} {% load bookwyrm_tags %} {% load humanize %} {% load utilities %} {% load static %} {% block title %}{{ book|book_title }}{% endblock %} {% block opengraph_images %} {% include 'snippets/opengraph_images.html' with image=book.preview_image %} {% endblock %} {% block content %} {% with user_authenticated=request.user.is_authenticated can_edit_book=perms.bookwyrm.edit_book %}
{% if book.subtitle %} {{ book.subtitle }} {% endif %} {% if book.series %} ({{ book.series }}{% if book.series_number %} #{{ book.series_number }}{% endif %}) {% endif %}
{% endif %} {% if book.authors.exists %}{% trans "Failed to load cover" %}
{% endif %}{% trans "View on OpenLibrary" %} {% if request.user.is_authenticated and perms.bookwyrm.edit_book %} {% with controls_text="ol_sync" controls_uid=book.id %} {% include 'snippets/toggle/toggle_button.html' with text=button_text focus="modal_title_ol_sync" class="is-small" icon_with_text="download" %} {% include "book/sync_modal.html" with source="openlibrary.org" source_name="OpenLibrary" %} {% endwith %} {% endif %}
{% endif %} {% if book.inventaire_id %}{% trans "View on Inventaire" %} {% if request.user.is_authenticated and perms.bookwyrm.edit_book %} {% with controls_text="iv_sync" controls_uid=book.id %} {% include 'snippets/toggle/toggle_button.html' with text=button_text focus="modal_title_iv_sync" class="is-small" icon_with_text="download" %} {% include "book/sync_modal.html" with source="inventaire.io" source_name="Inventaire" %} {% endwith %} {% endif %}
{% endif %}{% blocktrans with path=book.parent_work.local_path count=book.parent_work.editions.count %}{{ count }} editions{% endblocktrans %}
{% endif %}{% blocktrans with book_path=shelf.book.local_path shelf_path=shelf.shelf.local_path shelf_name=shelf.shelf.name %}A different edition of this book is on your {{ shelf_name }} shelf.{% endblocktrans %} {% include 'snippets/switch_edition_button.html' with edition=book %}
{% endfor %}{% trans "You don't have any reading activity for this book." %}
{% endif %} {% for readthrough in readthroughs %} {% include 'book/readthrough.html' with readthrough=readthrough %} {% endfor %}