1 {% extends "wiki/base.html" %}
7 <script type="text/javascript" charset="utf-8">
9 function search(event) {
10 event.preventDefault();
11 var expr = new RegExp(slugify($('#file-list-filter').val()), 'i');
12 $('#file-list tbody tr').hide().filter(function(index) {
13 return expr.test(slugify( $('a', this).attr('data-id') ));
17 $('#file-list-find-button').click(search).hide();
18 $('#file-list-filter').bind('keyup change DOMAttrModified', search);
23 {% block leftcolumn %}
24 <form method="get" action="#">
25 <table id="file-list">
28 <th><input autocomplete="off" name="filter" id="file-list-filter" type="text" size="40" /></th>
29 <th><input type="reset" value="{% trans "Clear filter" %}" id="file-list-reset-button"/></th>
33 {% for book in books %}
35 <td colspan="3"><a target="_blank" data-id="{{ book.slug }}"
36 href="{% url wiki_editor book.slug %}">{{ book.title }}</a></td>
37 <!-- placeholder </td> -->
43 {% endblock leftcolumn %}
45 {% block rightcolumn %}
46 <div id="last-edited-list">
47 <h2>{% trans "Your last edited documents" %}</h2>
49 {% for slug, item in last_books %}
50 <li><a href="{% url wiki_editor slug %}"
51 target="_blank">{{ item.title }}</a><br/><span class="date">({{ item.time|date:"H:i:s, d/m/Y" }})</span></li>
55 {% endblock rightcolumn %}