diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-01-19 11:53:43 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-01-19 11:53:43 +0000 |
commit | 0faa4568a0ab18277259ad1c89309c3c53fa42de (patch) | |
tree | 0bcdcc9bfb1263980715b650cffd3a7236d5feeb /app/views/layouts | |
parent | 3e031b4243b38c3739936ae143acf21d305cd570 (diff) | |
download | redmine-0faa4568a0ab18277259ad1c89309c3c53fa42de.tar.gz redmine-0faa4568a0ab18277259ad1c89309c3c53fa42de.zip |
Highlight the current item of the main menu.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1076 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/layouts')
-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> |