X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/69d9738d6855e38869678a54991d30e5cddb8e67..e977f7187b10b1bc0a30794cd585c6b840568996:/src/documents/templates/documents/book_list/book_list.html diff --git a/src/documents/templates/documents/book_list/book_list.html b/src/documents/templates/documents/book_list/book_list.html new file mode 100644 index 00000000..eb4c8f5d --- /dev/null +++ b/src/documents/templates/documents/book_list/book_list.html @@ -0,0 +1,117 @@ +{% load i18n %} +{% load pagination_tags %} +{% load username from common_tags %} + + +
+ + +{% if not viewed_user %} + +{% endif %} + + + +
+ + +
+
+ + + + + + + + + + + {% if not viewed_user %} + + {% else %} + + {% endif %} + + + + + + + + {% autopaginate books 100 as books_page %} + + {% for item in books_page %} + {% with book=item.book chunk=item.chunks.0 %} + {% include 'documents/book_list/book.html' %} + {% if not book.single %} + {% for chunk in item.chunks %} + {% include 'documents/book_list/chunk.html' %} + {% endfor %} + {% endif %} + {% endwith %} + {% endfor %} + +
+
+ +
+
+{% paginate %} + {% blocktrans count c=books|length %}{{c}} book{% plural %}{{c}} books{% endblocktrans %} + + +{% if not books %} +

{% trans "No books found." %}

+{% endif %} + +
+
+ + + +