dts接口(未完)
This commit is contained in:
parent
77e48b6590
commit
415f457dd4
|
@ -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?
|
||||
|
|
|
@ -35,6 +35,11 @@
|
|||
<li>
|
||||
<%= link_to l(:label_project_tool_response) ,project_feedback_path(@project)%>
|
||||
</li>
|
||||
<li>
|
||||
<% if User.current.admin? %>
|
||||
<%= link_to l(:label_project_dts) ,:controller => "projects", :action => "dts_repos", :id => @project.id %>
|
||||
<% end %>
|
||||
</li>
|
||||
<!--<li>-->
|
||||
<!--<%# unless @project.enabled_modules.where("name = 'dts'").empty? %>-->
|
||||
<!--<%#= link_to l(:project_module_dts) ,share_show_path(@project) %>-->
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
<div class="project_r_h">
|
||||
<h2 class="project_h2"><%= l(:label_project_dts) %></h2>
|
||||
</div>
|
|
@ -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: "新建了项目"
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue