{% extends "wiki/base.html" %}
{% load i18n %}
+{% load pagination_tags %}
+{% load wiki %}
{% block extrabody %}
{{ block.super }}
{% block leftcolumn %}
<form method="get" action="#">
- <table id="file-list">
+ <table>
<thead>
<tr><th>Filtr:</th>
<th><input autocomplete="off" name="filter" id="file-list-filter" type="text" size="40" /></th>
</tr>
</thead>
<tbody>
- {% for book in books %}
- {{ book.list_html }}
+ </tbody>
+ </table>
+ </form>
+
+
+
+ <form method="get" action="#">
+ <table id="file-list">
+ <tbody>
+ {% autopaginate books 20 %}
+ {% if not books %}
+ <tr><td>{% trans "No books found." %}</td></tr>
+ {% endif %}
+ {% for item in books %}
+ {% with item.book as book %}
+
+ {% ifequal item.book_length 1 %}
+ {% with item.chunks.0 as chunk %}
+ <tr>
+ <td><a target="_blank" href="{% url wiki_book book.slug %}">[B]</a></td>
+ <td><a href="{% url wiki_chunk_edit book.slug chunk.slug %}">[c]</a></td>
+ <td><a target="_blank"
+ href="{% url wiki_editor book.slug %}">
+ {{ book.title }}</a></td>
+ <td>({{ chunk.stage }})</td>
+ <td>{% if chunk.user %}<a href="{% url wiki_user chunk.user.username %}">{{ chunk.user.first_name }} {{ chunk.user.last_name }}</a>{% endif %}</td>
+ </tr>
+ {% endwith %}
+ {% else %}
+ <tr>
+ <td><a target="_blank" href="{% url wiki_book book.slug %}">[B]</a></td>
+ <td></td>
+ <td>{{ book.title }}</td>
+ </tr>
+ {% for chunk in item.chunks %}
+ <tr>
+ <td></td>
+ <td><a href="{% url wiki_chunk_edit book.slug chunk.slug %}">[c]</a></td>
+ <td><a target="_blank" href="{{ chunk.get_absolute_url }}">
+ <span class='chunkno'>{{ chunk.number }}.</span>
+ {{ chunk.comment }}</a></td>
+ <td>({{ chunk.stage }})</td>
+ <td>{% if chunk.user %}<a href="{% url wiki_user chunk.user.username %}">{{ chunk.user.first_name }} {{ chunk.user.last_name }}</a>{% endif %}</td>
+ </td></tr>
+ {% endfor %}
+ {% endifequal %}
+ {% endwith %}
{% endfor %}
+ <tr><td colspan="3">{% paginate %}</td></tr>
</tbody>
</table>
</form>
{% endfor %}
</ol>
</div>
+
+ <h2>{% trans "Recent activity" %}</h2>
+ {% wall %}
{% endblock rightcolumn %}