Redmine如何在特定顶级菜单下显示应用程序菜单?

时间:2015-07-30 09:10:02

标签: ruby-on-rails-3 ruby-on-rails-4 redmine redmine-plugins

我正在处理休假管理系统插件,所以想在lms菜单下显示应用程序菜单....这里我通过我的init文件代码

 menu :top_menu, :leave_transactions, { :controller => 'dashboard', :action => 'index' }, :caption => 'LMS' , :if => Proc.new { User.current.logged? }
    menu :application_menu, :dashboard, { :controller => 'dashboard', :action => 'index' }, :caption => 'Dashboard' , :if => Proc.new { User.current.logged? }
    menu :application_menu, :leave_transactions, { :controller => 'leave_transactions', :action => 'index' }, :caption => 'Apply Leave' , :if => Proc.new { User.current.logged? }
    menu :application_menu, :holiday_informations, { :controller => 'holiday_informations', :action => 'index' }, :caption => 'Holiday' , :if => Proc.new { User.current.logged? }

它为我工作,但应用程序菜单显示在菜单上。所以我想避免这种情况,当我点击lms菜单时,应用程序菜单显示...请帮助我

0 个答案:

没有答案