1 {% extends "base.html" %}
5 {% compressed_css 'listing' %}
6 {% endblock extrahead %}
9 {% compressed_js 'listing' %}
10 <script type="text/javascript" charset="utf-8">
12 function search(event) {
13 event.preventDefault();
15 var expr = new RegExp(slugify($('#file-list-filter').val()), 'i');
17 $('#file-list tbody tr').hide().filter(function(index) {
18 console.log(expr.test($(this).attr('title')))
19 return expr.test(slugify($('a', this).html()));
23 $('#file-list-find-button').click(search).hide();
24 $('#file-list-filter').bind('keyup change DOMAttrModified', search);
29 {% block maincontent %}
30 <h1><img src="{{STATIC_URL}}/img/logo.png">Platforma Redakcyjna</h1>
32 <div id="document-list">
33 <table id="file-list">
34 <thead><tr><th colspan="2">
35 <form action="#" method="GET">
36 Filtr: <input autocomplete="off" name="filter" id="file-list-filter" type="text" size="60" />
37 <input type="submit" value="Znajdź" id="file-list-find-button"/>
38 <input type="reset" value="Wyczyść" id="file-list-reset-button"/>
43 {% for file in document_list %}
45 <td><a target="_blank" href="{% url wiki.views.document_detail file|urlencode %}">{{ file }}</a></td>
46 <td><!-- placeholder --></td>
52 <div id="last-edited-list">
53 <h2>Twoje ostatnio otwierane dokumenty:</h2>
55 {% for name, date in last_docs %}
56 <li><a href="{% url wiki.views.document_detail name|urlencode %}"
57 target="_blank">{{ name }}</a><br/><span class="date">({{ date|date:"H:i:s, d/m/Y" }})</span></li>
64 {% endblock maincontent %}