X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/1fbf854ce423d2d56723ff10608267403f4916b0..985ca3a21df2340caa545f27e5f01fd1eb87c9c8:/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 6853801f..f808a1d3 100644 --- a/apps/wiki/templates/wiki/document_list.html +++ b/apps/wiki/templates/wiki/document_list.html @@ -1,7 +1,6 @@ {% extends "wiki/base.html" %} {% load i18n %} -{% load wiki %} {% block extrabody %} {{ block.super }} @@ -31,10 +30,27 @@ $(function() { - {% for doc in docs %} + {% for book in books %} - {{ doc|wiki_title }} + + [?] + {% ifequal book.chunk_set.count 1 %} + + {{ book.title }} + {% else %} + {{ book.title }} +
+ {% for chunk in book %} + + {{ forloop.counter }}. + {{ chunk.comment }}
+ {% endfor %} +
+ {% endifequal %} + {% endfor %} @@ -47,9 +63,9 @@ $(function() {

{% trans "Your last edited documents" %}

    - {% for name, date in last_docs %} -
  1. {{ name|wiki_title }}
    ({{ date|date:"H:i:s, d/m/Y" }})
  2. + {% for slugs, item in last_books %} +
  3. {{ item.title }}
    ({{ item.time|date:"H:i:s, d/m/Y" }})
  4. {% endfor %}