1 {% extends "wiki/base.html" %}
6 <script type="text/javascript" charset="utf-8">
8 function search(event) {
9 event.preventDefault();
10 var expr = new RegExp(slugify($('#file-list-filter').val()), 'i');
11 $('#file-list tbody tr').hide().filter(function(index) {
12 return expr.test(slugify($('a', this).text()));
16 $('#file-list-find-button').click(search).hide();
17 $('#file-list-filter').bind('keyup change DOMAttrModified', search);
22 {% block leftcolumn %}
23 <form method="get" action="#">
24 <table id="file-list">
27 <th><input autocomplete="off" name="filter" id="file-list-filter" type="text" size="40" /></th>
28 <th><input type="reset" value="Wyczyść" id="file-list-reset-button"/></th>
32 {% for file in document_list %}
34 <td colspan="3"><a target="_blank" href="{% url wiki.views.document_detail file|urlencode %}">{{ file }}</a></td>
35 <!-- placeholder </td> -->
41 {% endblock leftcolumn %}
43 {% block rightcolumn %}
44 <div id="last-edited-list">
45 <h2>Twoje ostatnio otwierane dokumenty:</h2>
47 {% for name, date in last_docs %}
48 <li><a href="{% url wiki.views.document_detail name|urlencode %}"
49 target="_blank">{{ name }}</a><br/><span class="date">({{ date|date:"H:i:s, d/m/Y" }})</span></li>
53 {% endblock rightcolumn %}