X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/e9f489960eb8a1fc8c1fc39123589a9358c5d569..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 3473b596..fe3598e1 100644 --- a/apps/catalogue/templates/catalogue/document_list.html +++ b/apps/catalogue/templates/catalogue/document_list.html @@ -1,128 +1,20 @@ {% extends "catalogue/base.html" %} {% load i18n %} -{% load pagination_tags %} -{% load set_get_parameter catalogue %} +{% load catalogue book_list %} +{% load pipeline %} -{% block extrabody %} -{{ block.super }} - -{% endblock %} - -{% block leftcolumn %} - -
- - - - - - - - {% if not viewed_user %} - - {% endif %} +{% 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 %} - - - - - - {% if not viewed_user %} - - {% endif %} - - {% endfor %} - {% endifequal %} - {% endwith %} - {% endfor %} - - -
{% trans "No books found." %}
[B][c] - {{ book.title }}{% if chunk.stage %} - ({{ chunk.stage }}) - {% else %}– - {% endif %}{% if chunk.user %}{{ chunk.user.first_name }} {{ chunk.user.last_name }}{% endif %}
[B]{{ book.title }}
[c] - {{ chunk.number }}. - {{ chunk.comment }}{% if chunk.stage %} - {{ chunk.stage }} - {% else %} - – - {% endif %}{% if chunk.user %} - - {{ chunk.user.first_name }} {{ chunk.user.last_name }} - {% else %} - - {% 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 %} - {% if viewed_user %} -

{% trans "Recent activity for" %} {{ viewed_user }}

- {% wall viewed_user %} - {% else %} -

{% trans "Recent activity" %}

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