{% 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/shelve_button.html' with book=book hide_pulldown=True %}
{% endfor %}
{% endif %} {% endfor %}
{% for shelf in shelves %} {% for book in shelf.books %} {% endfor %} {% endfor %}