From 096fc1c8af1c28b205e4b938c814ee6dca9b4576 Mon Sep 17 00:00:00 2001 From: Alexey Verkhovsky Date: Sat, 26 Mar 2005 18:56:37 +0000 Subject: [PATCH] Fixed navigation.rhtml links [dm1] --- app/views/navigation.rhtml | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/app/views/navigation.rhtml b/app/views/navigation.rhtml index 8974990e..aa7b1ca8 100644 --- a/app/views/navigation.rhtml +++ b/app/views/navigation.rhtml @@ -1,25 +1,30 @@ <% -def list_item(title, url, description, accesskey = nil) - if @title == title - "#{title}" - else - "#{title}" - end +def list_item(text, link_options, description, accesskey = nil) + link_options[:controller] = 'wiki' + link_options[:web] = @web.name + link_to_unless_current(text, link_options, :title => description, :accesskey => accesskey) { + content_tag('b', text, 'title' => description, 'accesskey' => accesskey, 'class' => 'navOn') + } end %>