修改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

@ -86,9 +86,9 @@ module Redmine
end end
# Renders the application main menu # Renders the application main menu
def render_main_menu(project) def render_main_menu(project)
render_menu((project && !project.new_record?) ? :project_menu : :application_menu, project) render_menu((project && !project.new_record?) ? :project_menu : :application_menu, project)
end end
def display_main_menu?(project) def display_main_menu?(project)
@ -121,12 +121,14 @@ 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)
html = [].tap do |html| html = [].tap do |html|
@ -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)