{% extends 'user/layout_without_bio.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' %}
{% trans "Cover" %} | {% trans "Title" %} | {% trans "Author" %} | {% trans "Shelved" %} | {% trans "Started" %} | {% trans "Finished" %} | {% if request.user.is_authenticated %}{% trans "Rating" %} | {% endif %} {% if shelf.user == request.user %} {% endif %}|
---|---|---|---|---|---|---|---|
{% 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 }} | {% latest_read_through book user as read_through %}{{ read_through.start_date|naturalday|default_if_none:""}} | {{ read_through.finish_date|naturalday|default_if_none:""}} | {% if request.user.is_authenticated %}{% include 'snippets/stars.html' with rating=book.rating %} | {% endif %} {% if shelf.user == request.user %}{% 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 %} | {% endif %}
{% trans "This shelf is empty." %}
{% if shelf.id and shelf.editable %} {% endif %} {% endif %}