From c506c076add0d88931ff6b4a3ecfbbbb2badac3b Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C5=81ukasz=20Rekucki?= Date: Sun, 14 Mar 2010 18:51:21 +0100 Subject: [PATCH] Fixed the list filter. --- .../wiki/templates/wiki/document_details.html | 2 ++ apps/wiki/templates/wiki/document_list.html | 19 +++++++++++++------ platforma/static/css/filelist.css | 3 +-- platforma/static/css/master.css | 7 ++++++- 4 files changed, 22 insertions(+), 9 deletions(-) diff --git a/apps/wiki/templates/wiki/document_details.html b/apps/wiki/templates/wiki/document_details.html index ac952458..c54ff150 100644 --- a/apps/wiki/templates/wiki/document_details.html +++ b/apps/wiki/templates/wiki/document_details.html @@ -1,6 +1,8 @@ {% extends "base.html" %} {% load toolbar_tags %} +{% block title %}{{ document.name }} - {{ block.super }}{% endblock %} + {% block extrahead %} {% load compressed %} {% compressed_css 'detail' %} diff --git a/apps/wiki/templates/wiki/document_list.html b/apps/wiki/templates/wiki/document_list.html index 1b0662b3..558ef55c 100644 --- a/apps/wiki/templates/wiki/document_list.html +++ b/apps/wiki/templates/wiki/document_list.html @@ -14,7 +14,7 @@ $(function() { var expr = new RegExp(slugify($('#file-list-filter').val()), 'i'); - $('#file-list p').hide().filter(function(index) { + $('#file-list tbody tr').hide().filter(function(index) { console.log(expr.test($(this).attr('title'))) return expr.test(slugify($('a', this).html())); }).show(); @@ -30,17 +30,24 @@ $(function() {

Platforma Redakcyjna

-
+ + + {% for file in document_list %} -

{{ file }}

+ + + + {% endfor %} - + +
-

Filtr: + Filtr: -

+
+
{{ file }}

Twoje ostatnio otwierane dokumenty:

diff --git a/platforma/static/css/filelist.css b/platforma/static/css/filelist.css index 0afc954d..a0b4995f 100644 --- a/platforma/static/css/filelist.css +++ b/platforma/static/css/filelist.css @@ -64,5 +64,4 @@ a, a:visited, a:active { a:hover { text-decoration: underline; -} -} +} \ No newline at end of file diff --git a/platforma/static/css/master.css b/platforma/static/css/master.css index 619d3fdd..d41a73c8 100644 --- a/platforma/static/css/master.css +++ b/platforma/static/css/master.css @@ -1,8 +1,13 @@ a, a:visited, a:active { - color: gold; + color: blue; text-decoration: none; } +a:hover { + text-decoration: underline; +} + + body { margin: 0; overflow: hidden; -- 2.20.1