From bc996da5ae39045fc2a5aaaf40ef8bfe547fbf69 Mon Sep 17 00:00:00 2001 From: huangjingquan Date: Mon, 4 Nov 2013 22:41:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E6=90=9C=E7=B4=A2bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/redmine.rb | 56 +++++++++++++++++++++++++------------------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/lib/redmine.rb b/lib/redmine.rb index 0aa398a02..7843bb726 100644 --- a/lib/redmine.rb +++ b/lib/redmine.rb @@ -199,7 +199,7 @@ end Redmine::MenuManager.map :top_menu do |menu| menu.push :home, :home_path menu.push :course_practice, {:controller => 'projects', :action => 'course', :project_type => 1} - menu.push :project_deposit, { :controller => 'projects', :action => 'index' }, :caption => :label_project_deposit + menu.push :project_deposit, { :controller => 'projects', :action => 'index', :project_type => 0}, :caption => :label_project_deposit menu.push :software_user, {:controller => 'users', :action => 'index'} menu.push :contest_innovate, {:controller => 'bids', :action => 'contest', :project_type => 1} menu.push :requirement_enterprise, {:controller => 'bids', :action => 'index'} @@ -213,45 +213,45 @@ end #end # by huang -Redmine::MenuManager.map :top_home_menu do |menu| - menu.push :home, :home_path - menu.push :projects, { :controller => 'projects', :action => 'index' }, :caption => :label_project_plural - menu.push :developer, {:controller => 'users', :action => 'index'} +# Redmine::MenuManager.map :top_home_menu do |menu| + # menu.push :home, :home_path + # menu.push :projects, { :controller => 'projects', :action => 'index' }, :caption => :label_project_plural + # menu.push :developer, {:controller => 'users', :action => 'index'} # menu.push :investor, :home_path # menu.push :theme, :home_path # menu.push :my_page, { :controller => 'my', :action => 'page' }, :if => Proc.new { User.current.logged? } # menu.push :administration, { :controller => 'admin', :action => 'index' }, :if => Proc.new { User.current.admin? }, :last => true # menu.push :help, Redmine::Info.help_url, :last => true -end +# end -Redmine::MenuManager.map :top_enterprise_menu do |menu| - menu.push :home, :home_path - menu.push :requirement, {:controller => 'bids', :action => 'index', :project_type => 0 } - menu.push :projects, { :controller => 'projects', :action => 'index', :project_type => 0 }, :caption => :label_project_plural - - menu.push :developer, {:controller => 'users', :action => 'index', :project_type => 0 } - menu.push :college_into, {:controller=>'projects', :action=>'course_enterprise', :project_type => 1 } - # menu.push :investor, :home_path - # menu.push :theme, :home_path - # menu.push :my_page, { :controller => 'my', :action => 'page' }, :if => Proc.new { User.current.logged? } - # menu.push :administration, { :controller => 'admin', :action => 'index' }, :if => Proc.new { User.current.admin? }, :last => true - # menu.push :help, Redmine::Info.help_url, :last => true -end +# Redmine::MenuManager.map :top_enterprise_menu do |menu| + # menu.push :home, :home_path + # menu.push :requirement, {:controller => 'bids', :action => 'index', :project_type => 0 } + # menu.push :projects, { :controller => 'projects', :action => 'index', :project_type => 0 }, :caption => :label_project_plural +# + # menu.push :developer, {:controller => 'users', :action => 'index', :project_type => 0 } + # menu.push :college_into, {:controller=>'projects', :action=>'course_enterprise', :project_type => 1 } + # # menu.push :investor, :home_path + # # menu.push :theme, :home_path + # # menu.push :my_page, { :controller => 'my', :action => 'page' }, :if => Proc.new { User.current.logged? } + # # menu.push :administration, { :controller => 'admin', :action => 'index' }, :if => Proc.new { User.current.admin? }, :last => true + # # menu.push :help, Redmine::Info.help_url, :last => true +# end -Redmine::MenuManager.map :top_college_menu do |menu| - menu.push :home, :home_path - menu.push :new_course, {:controller => 'projects', :action => 'course', :project_type => 1} - menu.push :new_homework, {:controller => 'bids', :action => 'index', :project_type => 1 } - menu.push :new_contest, {:controller => 'bids', :action => 'contest', :project_type => 1} - menu.push :projects, { :controller => 'projects', :action => 'index', :project_type => 0 }, :caption => :label_project_plural - menu.push :developer, {:controller => 'users', :action => 'index', :project_type => 1 } - menu.push :enterprise_into, {:controller=>'projects', :action=>'enterprise_course', :project_type => 0 } +# Redmine::MenuManager.map :top_college_menu do |menu| + # menu.push :home, :home_path + # menu.push :new_course, {:controller => 'projects', :action => 'course', :project_type => 1} + # menu.push :new_homework, {:controller => 'bids', :action => 'index', :project_type => 1 } + # menu.push :new_contest, {:controller => 'bids', :action => 'contest', :project_type => 1} + # menu.push :projects, { :controller => 'projects', :action => 'index', :project_type => 0 }, :caption => :label_project_plural + # menu.push :developer, {:controller => 'users', :action => 'index', :project_type => 1 } + # menu.push :enterprise_into, {:controller=>'projects', :action=>'enterprise_course', :project_type => 0 } # menu.push :investor, :home_path # menu.push :theme, :home_path # menu.push :my_page, { :controller => 'my', :action => 'page' }, :if => Proc.new { User.current.logged? } # menu.push :administration, { :controller => 'admin', :action => 'index' }, :if => Proc.new { User.current.admin? }, :last => true # menu.push :help, Redmine::Info.help_url, :last => true -end +# end # end Redmine::MenuManager.map :account_menu do |menu|