X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/8f0e18f498d6c07937c92d186bfa6b654a1afa14..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 c2ade35b..f808a1d3 100644 --- a/apps/wiki/templates/wiki/document_list.html +++ b/apps/wiki/templates/wiki/document_list.html @@ -1,4 +1,5 @@ {% extends "wiki/base.html" %} + {% load i18n %} {% block extrabody %} @@ -9,7 +10,7 @@ $(function() { event.preventDefault(); var expr = new RegExp(slugify($('#file-list-filter').val()), 'i'); $('#file-list tbody tr').hide().filter(function(index) { - return expr.test(slugify($('a', this).text())); + return expr.test(slugify( $('a', this).attr('data-id') )); }).show(); } @@ -29,9 +30,27 @@ $(function() { - {% for file in document_list %} + {% for book in books %} - {{ file }} + + [?] + {% ifequal book.chunk_set.count 1 %} + + {{ book.title }} + {% else %} + {{ book.title }} +
+ {% for chunk in book %} + + {{ forloop.counter }}. + {{ chunk.comment }}
+ {% endfor %} +
+ {% endifequal %} + {% endfor %} @@ -43,10 +62,10 @@ $(function() { {% block rightcolumn %}

{% trans "Your last edited documents" %}

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