diff options
Diffstat (limited to 'app/views/layouts/base.rhtml')
-rw-r--r-- | app/views/layouts/base.rhtml | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/app/views/layouts/base.rhtml b/app/views/layouts/base.rhtml index bdaddcb3b..91c3b2634 100644 --- a/app/views/layouts/base.rhtml +++ b/app/views/layouts/base.rhtml @@ -49,13 +49,7 @@ <h1><%= h(@project ? @project.name : Setting.app_title) %></h1> <div id="main-menu"> - <ul> - <% Redmine::MenuManager.allowed_items(:project_menu, User.current, @project).each do |item| %> - <% unless item.condition && !item.condition.call(@project) %> - <li><%= link_to l(item.name), {item.param => @project}.merge(item.url) %></li> - <% end %> - <% end if @project && !@project.new_record? %> - </ul> + <%= render_main_menu(@project) %> </div> </div> |