修改bug<代码评审模块请在左下角显示,不要在tab中显示>
Signed-off-by: alan <547533434@qq.com>
This commit is contained in:
parent
879433a9b8
commit
a4e659d8e1
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue