X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/5913c54d19b8f6775633176032161d49f9b2f1aa..fc8d58d4ac9abba24758ef6c914eea9f85ef7e5b:/src/catalogue/templates/catalogue/book_list/book_list.html diff --git a/src/catalogue/templates/catalogue/book_list/book_list.html b/src/catalogue/templates/catalogue/book_list/book_list.html index e238827b..0d761b8a 100755 --- a/src/catalogue/templates/catalogue/book_list/book_list.html +++ b/src/catalogue/templates/catalogue/book_list/book_list.html @@ -15,21 +15,22 @@ - +
+
+ + +
- + - {% if not viewed_user %} - {% endif %} - - - {% with cnt=books|length %} - {% autopaginate books 100 %} + {% autopaginate books 100 as books_page %} - {% for item in books %} - {% with item.book as book %} - {{ book.short_html|safe }} + {% for item in books_page %} + {% with book=item.book chunk=item.chunks.0 %} + {% include 'catalogue/book_list/book.html' %} {% if not book.single %} {% for chunk in item.chunks %} - {{ chunk.short_html|safe }} + {% include 'catalogue/book_list/chunk.html' %} {% endfor %} {% endif %} {% endwith %} {% endfor %} - - {% endwith %}
- -
+ class='form-control text-filter' value="{{ request.GET.title }}" />
- {% paginate %} - {% blocktrans count c=cnt %}{{c}} book{% plural %}{{c}} books{% endblocktrans %}
+{% paginate %} + {% blocktrans count c=books|length %}{{c}} book{% plural %}{{c}} books{% endblocktrans %} + + {% if not books %}

{% trans "No books found." %}

{% endif %} + + +