修改了项目列表搜索bug

This commit is contained in:
huangjingquan 2013-11-04 22:41:25 +08:00
parent ee33583ae1
commit bc996da5ae
1 changed files with 28 additions and 28 deletions

View File

@ -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|