|
|
@ -65,6 +65,16 @@ module ProjectsHelper
|
|
|
|
content_tag('div', content, :class => "tabs")
|
|
|
|
content_tag('div', content, :class => "tabs")
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# 判断我的项目中是否有重名项目
|
|
|
|
|
|
|
|
def judge_same_projectname(user, project_name)
|
|
|
|
|
|
|
|
result = false
|
|
|
|
|
|
|
|
my_projects = user.projects
|
|
|
|
|
|
|
|
my_projects.each do |mp|
|
|
|
|
|
|
|
|
result = true if mp.name == project_name
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
return result
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
# Added by young
|
|
|
|
# Added by young
|
|
|
|
def course_settings_tabs
|
|
|
|
def course_settings_tabs
|
|
|
|
tabs = [{:name => 'info', :action => :edit_project, :partial => 'projects/edit', :label => :label_information_plural, :course=>'1'},
|
|
|
|
tabs = [{:name => 'info', :action => :edit_project, :partial => 'projects/edit', :label => :label_information_plural, :course=>'1'},
|
|
|
|