X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/2f9c60b76f3ab4e69d794a6bb14388a81ff29eb7..8132fc186eb0c5fd02c86828c3a4735754296d02:/apps/catalogue/templates/catalogue/document_list.html diff --git a/apps/catalogue/templates/catalogue/document_list.html b/apps/catalogue/templates/catalogue/document_list.html index 9a40dfcc..fe3598e1 100644 --- a/apps/catalogue/templates/catalogue/document_list.html +++ b/apps/catalogue/templates/catalogue/document_list.html @@ -1,102 +1,20 @@ {% extends "catalogue/base.html" %} {% load i18n %} -{% load pagination_tags %} -{% load catalogue %} - -{% block extrabody %} -{{ block.super }} - -{% endblock %} - -{% block leftcolumn %} -
- - - - - - - - - -
Filtr:
-
+{% load catalogue book_list %} +{% load pipeline %} +{% block titleextra %}{% trans "Book list" %}{% endblock %} -
- - - {% autopaginate books 100 %} - {% if not books %} - - {% endif %} - {% for item in books %} - {% with item.book as book %} - - {% ifequal item.book_length 1 %} - {% with item.chunks.0 as chunk %} - - - - - - - - {% endwith %} - {% else %} - - - - - - {% for chunk in item.chunks %} - - - - - - - - {% endfor %} - {% endifequal %} - {% endwith %} - {% endfor %} - - -
{% trans "No books found." %}
[B][c] - {{ book.title }}({{ chunk.stage }}){% if chunk.user %}{{ chunk.user.first_name }} {{ chunk.user.last_name }}{% endif %}
[B]{{ book.title }}
[c] - {{ chunk.number }}. - {{ chunk.comment }}({{ chunk.stage }}){% if chunk.user %}{{ chunk.user.first_name }} {{ chunk.user.last_name }}{% endif %}
{% paginate %}
-
-{% endblock leftcolumn %} +{% block add_js %} +{% javascript 'book_list' %} +{% endblock %} -{% block rightcolumn %} -
-

{% trans "Your last edited documents" %}

-
    - {% for slugs, item in last_books %} -
  1. {{ item.title }}
    ({{ item.time|date:"H:i:s, d/m/Y" }})
  2. - {% endfor %} -
-
+{% block add_css %} +{% stylesheet 'book_list' %} +{% endblock %} -

{% trans "Recent activity" %}

- {% wall %} -{% endblock rightcolumn %} +{% block content %} + {% book_list %} +{% endblock content %}