diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index e6e93947c..18240aa20 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -361,6 +361,11 @@ class ProjectsController < ApplicationController
end
end
+ # dts工具接口
+ def dts_repos
+ render_403 unless User.current.admin?
+ end
+
#发送邮件邀请新用户
def invite_members_by_mail
if User.current.member_of?(@project) || User.current.admin?
diff --git a/app/views/projects/_tools_expand.html.erb b/app/views/projects/_tools_expand.html.erb
index e9e7492cc..50884775f 100644
--- a/app/views/projects/_tools_expand.html.erb
+++ b/app/views/projects/_tools_expand.html.erb
@@ -35,6 +35,11 @@
<%= link_to l(:label_project_tool_response) ,project_feedback_path(@project)%>
+
+ <% if User.current.admin? %>
+ <%= link_to l(:label_project_dts) ,:controller => "projects", :action => "dts_repos", :id => @project.id %>
+ <% end %>
+
diff --git a/app/views/projects/dts_repos.html.erb b/app/views/projects/dts_repos.html.erb
new file mode 100644
index 000000000..28f0398c5
--- /dev/null
+++ b/app/views/projects/dts_repos.html.erb
@@ -0,0 +1,3 @@
+
+
<%= l(:label_project_dts) %>
+
\ No newline at end of file
diff --git a/config/locales/projects/zh.yml b/config/locales/projects/zh.yml
index 92e3cdc28..72349dfe8 100644
--- a/config/locales/projects/zh.yml
+++ b/config/locales/projects/zh.yml
@@ -90,6 +90,8 @@ zh:
label_project_tool_response: 用户反馈
label_project_news: 项目新闻
+ label_project_dts: DTS测试
+
label_project_overview: "项目简介"
label_expend_information: 展开更多信息
label_project_create: "新建了项目"
diff --git a/config/routes.rb b/config/routes.rb
index 6ad495a1a..388da80de 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -387,8 +387,9 @@ RedmineApp::Application.routes.draw do
get 'watcherlist', :action=> 'watcherlist'
get 'invite_members', :action=> 'invite_members'
get 'invite_members_by_mail', :action=> 'invite_members_by_mail'
+ # get 'dts_repos', :aciton => 'dts_repos'
get 'send_mail_to_member', :action => 'send_mail_to_member'
- match 'user_watcherlist', :to => 'projects#watcherlist', :via => :get, :as => "watcherlist" #add by huang
+ match 'user_watcherlist', :to => 'projects#watcherlist', :via => :get, :as => "watcherlist"
#end
post 'modules'
post 'archive'