{% extends 'user/layout.html' %} {% load bookwyrm_tags %} {% load utilities %} {% load humanize %} {% load i18n %} {% block title %} {% include 'user/shelf/books_header.html' %} {% endblock %} {% block header %}

{% include 'user/shelf/books_header.html' %}

{% endblock %} {% block tabs %}
{% if is_self %}
{% trans "Create shelf" as button_text %} {% include 'snippets/toggle/open_button.html' with text=button_text icon_with_text="plus" controls_text="create_shelf_form" focus="create_shelf_form_header" %} {% trans "Import Books" %}
{% endif %}
{% endblock %} {% block panel %}
{% include 'user/shelf/create_shelf_form.html' with controls_text='create_shelf_form' %}

{{ shelf.name }} {% include 'snippets/privacy-icons.html' with item=shelf %}

{% if is_self and shelf.id %}
{% trans "Edit shelf" as button_text %} {% include 'snippets/toggle/open_button.html' with text=button_text icon_with_text="pencil" controls_text="edit_shelf_form" focus="edit_shelf_form_header" %}
{% endif %}
{% include 'user/shelf/edit_shelf_form.html' with controls_text="edit_shelf_form" %}
{% if books|length > 0 %} {% if request.user.is_authenticated %} {% endif %} {% if shelf.user == request.user %} {% endif %} {% for book in books %} {% spaceless %} {% latest_read_through book user as read_through %} {% if request.user.is_authenticated %} {% endif %} {% if shelf.user == request.user %} {% endif %} {% endspaceless %} {% endfor %}
{% trans "Cover" %} {% trans "Title" %} {% trans "Author" %} {% trans "Shelved" %} {% trans "Started" %} {% trans "Finished" %}{% trans "Rating" %}
{% include 'snippets/book_cover.html' with book=book cover_class='is-w-s-tablet is-h-s' %} {{ book.title }} {% include 'snippets/authors.html' %} {{ book.shelved_date|naturalday }} {{ read_through.start_date|naturalday|default_if_none:""}} {{ read_through.finish_date|naturalday|default_if_none:""}} {% include 'snippets/stars.html' with rating=book.rating %} {% with right=True %} {% if not shelf.id %} {% active_shelf book as current %} {% include 'snippets/shelf_selector.html' with current=current.shelf class="is-small" %} {% else %} {% include 'snippets/shelf_selector.html' with current=shelf class="is-small" %} {% endif %} {% endwith %}
{% else %}

{% trans "This shelf is empty." %}

{% if shelf.id and shelf.editable %}
{% csrf_token %}
{% endif %} {% endif %}
{% include 'snippets/pagination.html' with page=books path=request.path %}
{% endblock %}