{% load humanize %} {% load fr_display %} {% if shelf.books.all|length > 0 %}
Cover | Title | Author | Published | Shelved | Started | Finished | External links | {% if ratings %}Rating | {% endif %}|
---|---|---|---|---|---|---|---|---|---|
{% include 'snippets/book_cover.html' with book=book size="small" %} | {{ book.title }} | {{ book.authors.first.display_name }} | {% if book.first_published_date %}{{ book.first_published_date }}{% endif %} | {{ book.created_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:""}} | OpenLibrary | {% if ratings %}{% include 'snippets/stars.html' with rating=ratings|dict_key:book.id %} | {% endif %} {% if shelf.user == request.user %}{% include 'snippets/shelf_selector.html' with current=shelf %} | {% endif %}
This shelf is empty.
{% endif %}