{% load fr_display %}
{% for shelf in shelves %} {% if shelf.books %}

{{ shelf.name }} {% if shelf.size > shelf.books|length %} (See all {{ shelf.size }}) {% endif %}

{% for book in shelf.books %}
{% include 'snippets/book_cover.html' with book=book %} {% include 'snippets/shelve_button.html' with book=book %}
{% endfor %}
{% endif %} {% endfor %}
{% for shelf in shelves %} {% for book in shelf.books %}
Close
{% include 'snippets/create_status.html' with book=book user=request.user %}
{% endfor %} {% endfor %}