+
贴吧动态
<%= link_to "更多>>", forums_path %>
diff --git a/config/settings.yml b/config/settings.yml
index 2a50e6cb4..d43d3699b 100644
--- a/config/settings.yml
+++ b/config/settings.yml
@@ -236,11 +236,11 @@ tags_max_length:
tags_show_search_results:
format: int
default: 5
-forge_domain:
- default: forge.trustie.net
+user_domain:
+ default: user.trustie.net
project_domain:
default: forge.trustie.net
contest_domain:
- default: forge.trustie.net
+ default: contest.trustie.net
course_domain:
- default: forge.trustie.net
+ default: course.trustie.net
diff --git a/lib/redmine.rb b/lib/redmine.rb
index e5fb39446..3990d10d3 100644
--- a/lib/redmine.rb
+++ b/lib/redmine.rb
@@ -203,7 +203,7 @@ Redmine::AccessControl.map do |map|
end
#by young
Redmine::MenuManager.map :top_menu do |menu|
- menu.push :home, {:host => Setting.forge_domain}
+ menu.push :home, {:host => Setting.user_domain}
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'}
@@ -264,7 +264,7 @@ end
# end
Redmine::MenuManager.map :account_menu do |menu|
- menu.push :login, {:controller => 'account', :action => 'login', :host => Setting.forge_domain}, :if => Proc.new { !User.current.logged? }
+ menu.push :login, {:controller => 'account', :action => 'login', :host => Setting.project_domain}, :if => Proc.new { !User.current.logged? }
menu.push :register, {:controller => 'account', :action => 'register'}, :if => Proc.new { !User.current.logged? && Setting.self_registration? }
# menu.push :my_account, { :controller => 'my', :action => 'account' }, :if => Proc.new { User.current.logged? }
menu.push :logout, {:controller => 'account', :action => 'logout'}, :html => {:method => 'post'}, :if => Proc.new { User.current.logged? }
@@ -341,29 +341,29 @@ Redmine::MenuManager.map :course_menu do |menu|
end
Redmine::MenuManager.map :user_menu do |menu|
- menu.push :activity, {:controller => 'users', :action => 'show', :host => Setting.forge_domain }
+ menu.push :activity, {:controller => 'users', :action => 'show', :host => Setting.user_domain }
menu.push :user_course, {:controller => 'users', :action => 'user_courses', :host => Setting.course_domain}
#menu.push :user_homework, {:controller => 'users', :action => 'user_homeworks'} by huang
menu.push :user_project, {:controller => 'users', :action => 'user_projects', :host => Setting.project_domain}
# menu.push :requirement_focus, {:controller => 'users', :action => 'watch_bids'} by huang
- menu.push :user_newfeedback, {:controller => 'users', :action => 'user_newfeedback', :host => Setting.forge_domain}
+ menu.push :user_newfeedback, {:controller => 'users', :action => 'user_newfeedback', :host => Setting.user_domain}
end
Redmine::MenuManager.map :user_enterprise_menu do |menu|
- menu.push :activity, {:controller => 'users', :action => 'show', :host => Setting.forge_domain }
+ menu.push :activity, {:controller => 'users', :action => 'show', :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.forge_domain}
- menu.push :user_newfeedback, {:controller => 'users', :action => 'user_newfeedback', :host => Setting.forge_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}
end
Redmine::MenuManager.map :user_menu_self do |menu|
- menu.push :activity, {:controller => 'users', :action => 'show', :host => Setting.forge_domain }
- menu.push :user_information, {:controller => 'users', :action => 'info', :host => Setting.forge_domain}
- menu.push :user_project, {:controller => 'users', :action => 'user_projects', :host => Setting.forge_domain}
- menu.push :requirement_focus, {:controller => 'users', :action => 'watch_bids', :host => Setting.forge_domain}
- menu.push :user_newfeedback, {:controller => 'users', :action => 'user_newfeedback', :host => Setting.forge_domain}
+ 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}
end
#end