X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/32974185d5e2b1bdc197b4f5dcab259b5de3c6b4..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 2ab5ab9c..f808a1d3 100644 --- a/apps/wiki/templates/wiki/document_list.html +++ b/apps/wiki/templates/wiki/document_list.html @@ -1,5 +1,6 @@ {% extends "wiki/base.html" %} +{% load i18n %} {% block extrabody %} {{ block.super }} @@ -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(); } @@ -25,13 +26,31 @@ $(function() { Filtr: - + - {% 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 %} @@ -42,11 +61,11 @@ $(function() { {% block rightcolumn %}
-

Twoje ostatnio otwierane dokumenty:

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

    {% 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 %}