|
|
|
@ -267,7 +267,7 @@ Redmine::AccessControl.map do |map|
|
|
|
|
|
end
|
|
|
|
|
#by young
|
|
|
|
|
Redmine::MenuManager.map :top_menu do |menu|
|
|
|
|
|
menu.push :home, {:host => Setting.user_domain}
|
|
|
|
|
menu.push :home, {:host => Setting.host_user}
|
|
|
|
|
menu.push :course_practice, {:controller => 'projects', :action => 'course', :project_type => 1}
|
|
|
|
|
menu.push :project_deposit, { :controller => 'projects', :action => 'index', :project_type => 0}, :caption => :label_project_deposit
|
|
|
|
|
menu.push :software_user, {:controller => 'users', :action => 'index'}
|
|
|
|
@ -336,7 +336,7 @@ end
|
|
|
|
|
########fq
|
|
|
|
|
Redmine::MenuManager.map :bid_menu do |menu|
|
|
|
|
|
menu.push :respond, { :controller => 'bids', :action => 'show' }, :caption => :label_user_response
|
|
|
|
|
menu.push :project, { :controller => 'bids', :action => 'show_project', :host => Setting.project_domain }, :caption => :label_bidding_project
|
|
|
|
|
menu.push :project, { :controller => 'bids', :action => 'show_project', :host => Setting.host_name }, :caption => :label_bidding_project
|
|
|
|
|
# menu.push :result, { :controller => 'bids', :action => 'show_results' },
|
|
|
|
|
# :caption => :label_bidding_results,:if => Proc.new{ |p| User.current.id == p }
|
|
|
|
|
end
|
|
|
|
@ -422,7 +422,7 @@ Redmine::MenuManager.map :course_menu do |menu|
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
Redmine::MenuManager.map :user_menu do |menu|
|
|
|
|
|
menu.push :activity, {:controller => 'users', :action => 'show', :host => Setting.user_domain }
|
|
|
|
|
menu.push :activity, {:controller => 'users', :action => 'show', :host => Setting.host_user }
|
|
|
|
|
menu.push :user_course, {:controller => 'users', :action => 'user_courses'},
|
|
|
|
|
:if => Proc.new {|u| if User.current == u || User.current.admin?
|
|
|
|
|
membership = u.coursememberships.all
|
|
|
|
@ -432,7 +432,7 @@ Redmine::MenuManager.map :user_menu do |menu|
|
|
|
|
|
FirstPage.find_by_page_type('project').show_course != 2 && membership && membership.count > 0
|
|
|
|
|
}
|
|
|
|
|
#menu.push :user_homework, {:controller => 'users', :action => 'user_homeworks'} by huang
|
|
|
|
|
menu.push :user_project, {:controller => 'users', :action => 'user_projects_index', :host => Setting.project_domain},
|
|
|
|
|
menu.push :user_project, {:controller => 'users', :action => 'user_projects_index', :host => Setting.host_name},
|
|
|
|
|
:if => Proc.new {|u| if User.current.admin?
|
|
|
|
|
memberships = u.memberships.all(conditions: "projects.project_type = #{Project::ProjectType_project}").first
|
|
|
|
|
else
|
|
|
|
@ -443,24 +443,24 @@ Redmine::MenuManager.map :user_menu do |menu|
|
|
|
|
|
memberships || watch_projects
|
|
|
|
|
}
|
|
|
|
|
# menu.push :requirement_focus, {:controller => 'users', :action => 'watch_bids'} by huang
|
|
|
|
|
menu.push :user_newfeedback, {:controller => 'users', :action => 'user_newfeedback', :host => Setting.user_domain}
|
|
|
|
|
menu.push :user_newfeedback, {:controller => 'users', :action => 'user_newfeedback', :host => Setting.host_user}
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
Redmine::MenuManager.map :user_enterprise_menu do |menu|
|
|
|
|
|
menu.push :activity, {:controller => 'users', :action => 'show', :host => Setting.user_domain }
|
|
|
|
|
menu.push :activity, {:controller => 'users', :action => 'show', :host => Setting.host_user }
|
|
|
|
|
|
|
|
|
|
menu.push :user_project, {:controller => 'users', :action => 'user_projects', :host => Setting.project_domain}
|
|
|
|
|
menu.push :user_project, {:controller => 'users', :action => 'user_projects', :host => Setting.host_name}
|
|
|
|
|
|
|
|
|
|
menu.push :requirement_focus, {:controller => 'users', :action => 'watch_bids', :host => Setting.user_domain}
|
|
|
|
|
menu.push :user_newfeedback, {:controller => 'users', :action => 'user_newfeedback', :host => Setting.user_domain}
|
|
|
|
|
menu.push :requirement_focus, {:controller => 'users', :action => 'watch_bids', :host => Setting.host_user}
|
|
|
|
|
menu.push :user_newfeedback, {:controller => 'users', :action => 'user_newfeedback', :host => Setting.host_user}
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
Redmine::MenuManager.map :user_menu_self do |menu|
|
|
|
|
|
menu.push :activity, {:controller => 'users', :action => 'show', :host => Setting.project_domain }
|
|
|
|
|
menu.push :user_information, {:controller => 'users', :action => 'info', :host => Setting.user_domain}
|
|
|
|
|
menu.push :user_project, {:controller => 'users', :action => 'user_projects', :host => Setting.project_domain}
|
|
|
|
|
menu.push :requirement_focus, {:controller => 'users', :action => 'watch_bids', :host => Setting.user_domain}
|
|
|
|
|
menu.push :user_newfeedback, {:controller => 'users', :action => 'user_newfeedback', :host => Setting.user_domain}
|
|
|
|
|
menu.push :activity, {:controller => 'users', :action => 'show', :host => Setting.host_name }
|
|
|
|
|
menu.push :user_information, {:controller => 'users', :action => 'info', :host => Setting.host_user}
|
|
|
|
|
menu.push :user_project, {:controller => 'users', :action => 'user_projects', :host => Setting.host_name}
|
|
|
|
|
menu.push :requirement_focus, {:controller => 'users', :action => 'watch_bids', :host => Setting.host_user}
|
|
|
|
|
menu.push :user_newfeedback, {:controller => 'users', :action => 'user_newfeedback', :host => Setting.host_user}
|
|
|
|
|
|
|
|
|
|
end
|
|
|
|
|
#end
|
|
|
|
|