|
|
@@ -207,18 +207,19 @@ module Redmine |
|
|
|
|
|
|
|
def extract_node_details(node, project=nil) |
|
|
|
item = node |
|
|
|
url = case item.url |
|
|
|
when Hash |
|
|
|
project.nil? ? item.url : {item.param => project}.merge(item.url) |
|
|
|
when Symbol |
|
|
|
if project |
|
|
|
send(item.url, project) |
|
|
|
url = |
|
|
|
case item.url |
|
|
|
when Hash |
|
|
|
project.nil? ? item.url : {item.param => project}.merge(item.url) |
|
|
|
when Symbol |
|
|
|
if project |
|
|
|
send(item.url, project) |
|
|
|
else |
|
|
|
send(item.url) |
|
|
|
end |
|
|
|
else |
|
|
|
send(item.url) |
|
|
|
item.url |
|
|
|
end |
|
|
|
else |
|
|
|
item.url |
|
|
|
end |
|
|
|
caption = item.caption(project) |
|
|
|
return [caption, url, (current_menu_item == item.name)] |
|
|
|
end |