{% extends 'layout.html' %}
{% load shelf_tags %}
{% load utilities %}
{% load humanize %}
{% load i18n %}
{% block title %}
{% include 'user/books_header.html' with shelf=shelf %}
{% endblock %}
{% block opengraph_images %}
{% include 'snippets/opengraph_images.html' with image=user.preview_image %}
{% endblock %}
{% block content %}
{% include 'user/books_header.html' %}
{{ shelf.description }}
{% endif %}{% trans "Cover"%} | {% trans "Title" as text %}{% include 'snippets/table-sort-header.html' with field="title" sort=sort text=text %} | {% trans "Author" as text %}{% include 'snippets/table-sort-header.html' with field="author" sort=sort text=text %} | {% if request.user.is_authenticated %} {% if is_self %}{% trans "Shelved" as text %}{% include 'snippets/table-sort-header.html' with field="shelved_date" sort=sort text=text %} | {% trans "Started" as text %}{% include 'snippets/table-sort-header.html' with field="start_date" sort=sort text=text %} | {% if shelf.identifier == 'read' %}{% trans "Finished" as text %}{% else %}{% trans "Until" as text %}{% endif %}{% include 'snippets/table-sort-header.html' with field="finish_date" sort=sort text=text %} | {% endif %}{% trans "Rating" as text %}{% include 'snippets/table-sort-header.html' with field="rating" sort=sort text=text %} | {% endif %} {% if shelf.user == request.user %} {% endif %}|
---|---|---|---|---|---|---|---|
{% include 'snippets/book_cover.html' with book=book cover_class='is-w-s-tablet is-h-s' size='small' %} | {{ book.title }} | {% include 'snippets/authors.html' %} | {% if request.user.is_authenticated %} {% if is_self %}{{ book.shelved_date|naturalday }} | {{ book.start_date|naturalday|default_if_none:""}} | {{ book.finish_date|naturalday|default_if_none:""}} | {% endif %}{% 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." %}
{% endif %}