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

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

{% endif %}
{% if request.GET.updated %}
{% if list.curation != "open" and request.user != list.user %} {% trans "You successfully suggested a book for this list!" %} {% else %} {% trans "You successfully added a book to this list!" %} {% endif %}
{% endif %} {% if not items.object_list.exists %}

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

{% else %}
    {% for item in items %}
  1. {% with book=item.book %}

    {% include 'snippets/book_titleby.html' %}

    {% include 'snippets/stars.html' with rating=item.book|rating:request.user %}

    {{ book|book_description|to_markdown|default:""|safe|truncatewords_html:20 }}
    {% include 'snippets/shelve_button/shelve_button.html' %}
    {% endwith %}
  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 %} {% if suggested_books|length > 0 %} {% for book in suggested_books %}

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

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