1 {% extends "wiki/base.html" %}
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 {% for doc in object_list %}
36 <td colspan="3"><a target="_blank" data-id="{{doc.name}}"
37 href="{% url wiki_img_editor doc.slug %}">{{ doc.name }}</a></td>
38 <!-- placeholder </td> -->
44 {% endblock leftcolumn %}
46 {% block rightcolumn %}
47 <div id="last-edited-list">
48 <h2>{% trans "Your last edited documents" %}</h2>
50 {% for name, date in last_docs %}
51 <li><a href="{% url wiki_editor name %}"
52 target="_blank">{{ name|wiki_title }}</a><br/><span class="date">({{ date|date:"H:i:s, d/m/Y" }})</span></li>
56 {% endblock rightcolumn %}