highlight current wiki menu item in the project navigation

pull/41/head
Romano Licker 12 years ago committed by Jens Ulferts
parent 567025ccce
commit 447e9ad88d
  1. 9
      lib/redmine/menu_manager/menu_helper.rb

@ -180,7 +180,14 @@ module Redmine::MenuManager::MenuHelper
item.url
end
caption = item.caption(project)
return [caption, url, (current_menu_item == item.name)]
if @page and current_menu_item == :wiki
selected = node.name.to_sym == @page.title.to_sym if @page.title
else
selected = current_menu_item == item.name
end
return [caption, url, selected]
end
# Checks if a user is allowed to access the menu item by:

Loading…
Cancel
Save