1 {% extends "wiki/base.html" %}
4 {% load pagination_tags %}
8 <script type="text/javascript" charset="utf-8">
10 function search(event) {
11 event.preventDefault();
12 var expr = new RegExp(slugify($('#file-list-filter').val()), 'i');
13 $('#file-list tbody tr').hide().filter(function(index) {
14 return expr.test(slugify( $('a', this).attr('data-id') ));
18 $('#file-list-find-button').click(search).hide();
19 $('#file-list-filter').bind('keyup change DOMAttrModified', search);
24 {% block leftcolumn %}
25 <form method="get" action="#">
26 <table id="file-list">
29 <th><input autocomplete="off" name="filter" id="file-list-filter" type="text" size="40" /></th>
30 <th><input type="reset" value="{% trans "Clear filter" %}" id="file-list-reset-button"/></th>
34 {% autopaginate books 20 %}
35 {% for book in books %}
39 <tr><td colspan="3">{% paginate %}</td></tr>
42 {% endblock leftcolumn %}
44 {% block rightcolumn %}
45 <div id="last-edited-list">
46 <h2>{% trans "Your last edited documents" %}</h2>
48 {% for slugs, item in last_books %}
49 <li><a href="{% url wiki_editor slugs.0 slugs.1 %}"
50 target="_blank">{{ item.title }}</a><br/><span class="date">({{ item.time|date:"H:i:s, d/m/Y" }})</span></li>
54 {% endblock rightcolumn %}