1 {% extends "wiki/base.html" %}
4 {% load pagination_tags %}
9 <script type="text/javascript" charset="utf-8">
11 function search(event) {
12 event.preventDefault();
13 var expr = new RegExp(slugify($('#file-list-filter').val()), 'i');
14 $('#file-list tbody tr').hide().filter(function(index) {
15 return expr.test(slugify( $('a', this).attr('data-id') ));
19 $('#file-list-find-button').click(search).hide();
20 $('#file-list-filter').bind('keyup change DOMAttrModified', search);
25 {% block leftcolumn %}
26 <form method="get" action="#">
30 <th><input autocomplete="off" name="filter" id="file-list-filter" type="text" size="40" /></th>
31 <th><input type="reset" value="{% trans "Clear filter" %}" id="file-list-reset-button"/></th>
41 <form method="get" action="#">
42 <table id="file-list">
44 {% autopaginate books 20 %}
46 <tr><td>{% trans "No books found." %}</td></tr>
48 {% for item in books %}
49 {% with item.book as book %}
51 {% ifequal book.chunk_set.count 1 %}
53 <td><a target="_blank" href="{% url wiki_book book.slug %}">[B]</a></td>
54 <td><a href="{% url wiki_chunk_edit book.slug book.0.slug %}">[c]</a></td>
55 <td><a target="_blank"
56 href="{% url wiki_editor book.slug %}">
57 {{ book.title }}</a></td>
58 <td>({{ book.0.stage }})</td>
59 <td>{% if book.0.user %}<a href="{% url wiki_user book.0.user.username %}">{{ book.0.user.first_name }} {{ book.0.user.last_name }}</a>{% endif %}</td>
63 <td><a target="_blank" href="{% url wiki_book book.slug %}">[B]</a></td>
65 <td>{{ book.title }}</td>
67 {% for chunk in item.chunks %}
70 <td><a href="{% url wiki_chunk_edit book.slug chunk.slug %}">[c]</a></td>
71 <td><a target="_blank" href="{{ chunk.get_absolute_url }}">
72 <span class='chunkno'>{{ chunk.number }}.</span>
73 {{ chunk.comment }}</a></td>
74 <td>({{ chunk.stage }})</td>
75 <td>{% if chunk.user %}<a href="{% url wiki_user chunk.user.username %}">{{ chunk.user.first_name }} {{ chunk.user.last_name }}</a>{% endif %}</td>
81 <tr><td colspan="3">{% paginate %}</td></tr>
85 {% endblock leftcolumn %}
87 {% block rightcolumn %}
88 <div id="last-edited-list">
89 <h2>{% trans "Your last edited documents" %}</h2>
91 {% for slugs, item in last_books %}
92 <li><a href="{% url wiki_editor slugs.0 slugs.1 %}"
93 target="_blank">{{ item.title }}</a><br/><span class="date">({{ item.time|date:"H:i:s, d/m/Y" }})</span></li>
98 <h2>{% trans "Recent activity" %}</h2>
100 {% endblock rightcolumn %}