assigning tickets, new ui
[redakcja.git] / apps / wiki / templates / wiki / document_list.html
index f808a1d..221b63d 100644 (file)
@@ -1,6 +1,7 @@
 {% extends "wiki/base.html" %}
 
 {% load i18n %}
+{% load pagination_tags %}
 
 {% block extrabody %}
 {{ block.super }}
@@ -22,7 +23,7 @@ $(function() {
 
 {% block leftcolumn %}
        <form method="get" action="#">
-    <table  id="file-list">
+    <table id="file-list">
        <thead>
                <tr><th>Filtr:</th>
                        <th><input autocomplete="off" name="filter" id="file-list-filter" type="text" size="40" /></th>
@@ -30,31 +31,12 @@ $(function() {
                        </tr>
                </thead>
                <tbody>
+        {% autopaginate books 20 %}
        {% for book in books %}
-            <tr>
-                <td colspan="3">
-                    <a target="_blank" data-id="{{ book.slug }}"
-                    href="{% url wiki_book book.slug %}">[?]</a>
-                    {% ifequal book.chunk_set.count 1 %}
-                        <a target="_blank" data-id="{{ book.slug }}"
-                                href="{% url wiki_editor book.slug %}">
-                                {{ book.title }}</a>
-                    {% else %}
-                        {{ book.title }}
-                        <div class="chunk-list">
-                        {% for chunk in book %}
-                            <a target="_blank" data-id="{{ book.slug }}"
-                                href="{{ chunk.get_absolute_url }}">
-                                <span class='chunkno'>{{ forloop.counter }}.</span>
-                                {{ chunk.comment }}</a><br/>
-                        {% endfor %}
-                        </div>
-                    {% endifequal %}
-                </td>
-                               <!-- placeholder </td> -->
-                       </tr>
+            {{ book.list_html }}
        {% endfor %}
                </tbody>
+        <tr><td colspan="3">{% paginate %}</td></tr>
     </table>
        </form>
 {% endblock leftcolumn %}