{% extends 'lists/list_layout.html' %} {% load i18n %} {% load bookwyrm_tags %} {% block panel %} {% if request.user == list.user and pending_count %}

{{ pending_count }} book{{ pending_count | pluralize }} awaiting your approval

{% endif %}
{% if not items.object_list.exists %}

{% trans "This list is currently empty" %}

{% else %}
    {% for item in items %}
  1. {% include 'snippets/book_titleby.html' with book=item.book %} {% include 'snippets/stars.html' with rating=item.book|rating:request.user %} {% include 'snippets/shelve_button/shelve_button.html' with book=item.book %}
  2. {% endfor %}
{% endif %} {% include "snippets/pagination.html" with page=items %}

{% trans "Sort List" %}

{{ sort_form.sort_by }}
{{ sort_form.direction }}
{% if request.user.is_authenticated and not list.curation == 'closed' or request.user == list.user %}

{% if list.curation == 'open' or request.user == list.user %}{% trans "Add Books" %}{% else %}{% trans "Suggest Books" %}{% endif %}

{% if query %}

{% trans "Clear search" %}

{% endif %}
{% if not suggested_books %} {% if query %}

{% blocktrans %}No books found matching the query "{{ query }}"{% endblocktrans %}

{% else %}

{% trans "No books found" %}

{% endif %} {% endif %} {% for book in suggested_books %} {% if book %}

{% include 'snippets/book_titleby.html' with book=book %}

{% csrf_token %}
{% endif %} {% endfor %} {% endif %}
{% endblock %}