|
|
@ -180,7 +180,14 @@ module Redmine::MenuManager::MenuHelper |
|
|
|
item.url |
|
|
|
item.url |
|
|
|
end |
|
|
|
end |
|
|
|
caption = item.caption(project) |
|
|
|
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 |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
# Checks if a user is allowed to access the menu item by: |
|
|
|
# Checks if a user is allowed to access the menu item by: |
|
|
|