{% extends 'lists/layout.html' %} {% load i18n %} {% load rating_tags %} {% load group_tags %} {% load book_display_tags %} {% load markdown %} {% load utilities %} {% block breadcrumbs %} {% endblock %} {% 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 and not list.group|is_member:request.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' with book=book %}
    {% endwith %} {% if item.notes %}
    {% url 'user-feed' user|username as user_path %} {% blocktrans trimmed with username=user.display_name %} {{ username }} says: {% endblocktrans %}

    {{ item.notes|to_markdown|safe }}

    {% if item.user == request.user %}
    {% trans "Edit notes" %} {% include "lists/edit_item_form.html" with book=item.book %}
    {% endif %}
    {% elif item.user == request.user %}
    {% trans "Add notes" %} {% include "lists/edit_item_form.html" with book=item.book %}
    {% endif %}
  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 or list.group|is_member:request.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 %}

{% join "add_item" list.id book.id as modal_id %} {% include "lists/add_item_modal.html" with id=modal_id %}
{% endfor %} {% endif %} {% endif %}

{% trans "Embed this list on a website" %}

{% endblock %}