修改bug<代码评审模块请在左下角显示,不要在tab中显示>

Signed-off-by: alan <547533434@qq.com>
This commit is contained in:
alan 2014-11-13 15:55:12 +08:00
parent 879433a9b8
commit a4e659d8e1
1 changed files with 7 additions and 5 deletions

View File

@ -121,10 +121,12 @@ module Redmine
return render_menu_node_with_children(node, project) return render_menu_node_with_children(node, project)
else else
caption, url, selected = extract_node_details(node, project) caption, url, selected = extract_node_details(node, project)
unless url.to_s.include?( 'code_review')
return content_tag('li', return content_tag('li',
render_single_menu_node(node, caption, url, selected)) render_single_menu_node(node, caption, url, selected))
end end
end end
end
def render_menu_node_with_children(node, project=nil) def render_menu_node_with_children(node, project=nil)
caption, url, selected = extract_node_details(node, project) caption, url, selected = extract_node_details(node, project)
@ -170,9 +172,9 @@ module Redmine
end end
def render_single_menu_node(item, caption, url, selected) def render_single_menu_node(item, caption, url, selected)
unless url.include?('code_review')
link_to(h(caption), url, item.html_options(:selected => selected)) link_to(h(caption), url, item.html_options(:selected => selected))
end
end end
def render_unattached_menu_item(menu_item, project) def render_unattached_menu_item(menu_item, project)