X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/8830e06ad0b466c40747540b5122e6825114a90a..a7a2b1c6daaa2266645abc5ee4fac91ce10a4c39:/apps/wiki/templates/wiki/document_list.html diff --git a/apps/wiki/templates/wiki/document_list.html b/apps/wiki/templates/wiki/document_list.html index 221b63d2..9525078c 100644 --- a/apps/wiki/templates/wiki/document_list.html +++ b/apps/wiki/templates/wiki/document_list.html @@ -2,6 +2,7 @@ {% load i18n %} {% load pagination_tags %} +{% load wiki %} {% block extrabody %} {{ block.super }} @@ -23,7 +24,7 @@ $(function() { {% block leftcolumn %}
- +
@@ -31,12 +32,54 @@ $(function() { + +
Filtr:
+
+ + + +
+ + {% autopaginate books 20 %} - {% for book in books %} - {{ book.list_html }} + {% if not books %} + + {% endif %} + {% for item in books %} + {% with item.book as book %} + + {% ifequal book.chunk_set.count 1 %} + + + + + + + + {% else %} + + + + + + {% for chunk in item.chunks %} + + + + + + + + {% endfor %} + {% endifequal %} + {% endwith %} {% endfor %} - +
{% trans "No books found." %}
[B][c] + {{ book.title }}({{ book.0.stage }}){% if book.0.user %}{{ book.0.user.first_name }} {{ book.0.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 %}