diff --git a/app/views/libraries/new.html.erb b/app/views/libraries/new.html.erb
index 987951d3..a9583823 100644
--- a/app/views/libraries/new.html.erb
+++ b/app/views/libraries/new.html.erb
@@ -1,6 +1,6 @@
- <%= link_to '文库', libraries_path, class: 'color-grey-9' %> >
+ <%= link_to '教学案例', libraries_path, class: 'color-grey-9' %> >
新建
diff --git a/app/views/libraries/show.html.erb b/app/views/libraries/show.html.erb
index 8c55b63a..5b196712 100644
--- a/app/views/libraries/show.html.erb
+++ b/app/views/libraries/show.html.erb
@@ -3,7 +3,7 @@
%>
- <%= link_to '文库', libraries_path, class: 'color-grey-9' %> >
+ <%= link_to '教学案例', libraries_path, class: 'color-grey-9' %> >
详情
diff --git a/app/views/managements/library_applies/index.html.erb b/app/views/managements/library_applies/index.html.erb
index 23d898c4..c83a5321 100644
--- a/app/views/managements/library_applies/index.html.erb
+++ b/app/views/managements/library_applies/index.html.erb
@@ -1,6 +1,6 @@
@@ -16,7 +16,7 @@
@@ -34,7 +34,7 @@
<%= link_to "拒绝", library_applies_path(status: :refused), :class => "edu-filter-cir-grey mr5 fl font-12", :id => "library_reject_authentication", :remote => true %>
diff --git a/config/locales/libraries/zh.yml b/config/locales/libraries/zh.yml
index 3004ecab..3dae730c 100644
--- a/config/locales/libraries/zh.yml
+++ b/config/locales/libraries/zh.yml
@@ -1,7 +1,7 @@
'zh':
activerecord:
models:
- library: '文库'
+ library: '教学案例'
attributes:
library:
title: '标题'
diff --git a/config/routes.rb b/config/routes.rb
index af3f2a1f..5936b9b4 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -52,6 +52,11 @@ RedmineApp::Application.routes.draw do ## oauth相关
end
end
+ # library
+ resources :libraries do
+ get :publish_success, on: :collection
+ end
+
resources :ec_course_evaluations do
member do
match 'import_score', :via => [:post]
@@ -2660,11 +2665,6 @@ RedmineApp::Application.routes.draw do ## oauth相关
get '/:sub_dir_name', :to => 'org_subfields#show', :as => 'show_subfield_without_id'
- # library
- resources :libraries do
- get :publish_success, on: :collection
- end
-
Dir.glob File.expand_path("plugins/*", Rails.root) do |plugin_dir|
file = File.join(plugin_dir, "config/routes.rb")
if File.exists?(file)
diff --git a/lib/trustie/sms/sms.rb b/lib/trustie/sms/sms.rb
index 319de17c..7c2dad4c 100644
--- a/lib/trustie/sms/sms.rb
+++ b/lib/trustie/sms/sms.rb
@@ -58,7 +58,7 @@ module Trustie
params['text'] = "【计算机实践教学】亲爱的#{user_name}老师,您已经成功报名参与了11月24日--25日在深圳大学举办的全国软件工程实践教学案例与应用研讨会,请准时参加。(如有任何参会问题,请致电咨询会务联系人汤老师13099740868)"
Rails.logger.info "#{params['text']}"
elsif send_type == 'publish_library'
- params['text'] = "【Edu实训】亲爱的#{name},有新的文库发布申请,请尽快处理"
+ params['text'] = "【Edu实训】亲爱的#{name},有新的教学案例发布申请,请尽快处理"
Rails.logger.info "#{params['text']}"
end
diff --git a/public/stylesheets/educoder/edu-all.css b/public/stylesheets/educoder/edu-all.css
index c2338d19..db1a8de5 100644
--- a/public/stylesheets/educoder/edu-all.css
+++ b/public/stylesheets/educoder/edu-all.css
@@ -3376,7 +3376,7 @@ line-height: 16px;display: inline-block;color: rgba(65, 140, 205, 1) !important;
right: 20px;
}
-/*文库*/
+/*教学案例*/
.library_nav li{
float: left;cursor: pointer;margin-right: 30px;position: relative;color: #05101A;height: 40px;line-height: 20px;
font-size: 16px;