diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 031c4399..e7390697 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -753,7 +753,7 @@ module ApplicationHelper
when 5 then '实训发布'
when 6 then '实训课程发布'
when 7 then '职业认证'
- when 8 then '文库发布'
+ when 8 then '教学案例发布'
else '职业认证'
end
when 11
@@ -4368,7 +4368,7 @@ module ApplicationHelper
elsif attachment.container_type == "Bid" && attachment.container && attachment.container.courses
course = attachment.container.courses.first
candown = User.current.member_of_course?(attachment.container.courses.first) || (course.is_public == 1 && attachment.is_public == 1)
- elsif attachment.container_type == "Library" #文库允许下载
+ elsif attachment.container_type == "Library" #教学案例允许下载
candown = true
else
candown = (attachment.is_public == 1 || attachment.is_public == true)
diff --git a/app/models/tiding.rb b/app/models/tiding.rb
index 91bcf0b9..c5b2e6a3 100644
--- a/app/models/tiding.rb
+++ b/app/models/tiding.rb
@@ -361,10 +361,10 @@ class Tiding < ActiveRecord::Base
when 'Library'
library = Library.find_by_id(container_id)
if tiding_type == 'Apply'
- "申请发布文库:#{library.try(:title)}"
+ "申请发布教学案例:#{library.try(:title)}"
elsif tiding_type == 'System'
text = status == 1 ? "审核已通过" : "审核未通过,
原因:#{extra}"
- "你提交的发布文库申请:#{library.try(:title)},#{text}"
+ "你提交的发布教学案例申请:#{library.try(:title)},#{text}"
end
else
logger.error "error type: 1"
diff --git a/app/views/layouts/_logined_header.html.erb b/app/views/layouts/_logined_header.html.erb
index f33b2110..7f6e08f9 100644
--- a/app/views/layouts/_logined_header.html.erb
+++ b/app/views/layouts/_logined_header.html.erb
@@ -18,7 +18,7 @@
<% end %>
-
+
- <%= link_to '文库', libraries_path, class: 'color-grey-9' %> > + <%= link_to '教学案例', libraries_path, class: 'color-grey-9' %> > 编辑
diff --git a/app/views/libraries/index.html.erb b/app/views/libraries/index.html.erb index 98e80cb0..84a2a9af 100644 --- a/app/views/libraries/index.html.erb +++ b/app/views/libraries/index.html.erb @@ -1,7 +1,7 @@- 文库 + 教学案例 <%= link_to '新建', new_library_path, class: 'fr color-blue font-16 mt3' %>
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 @@
文库发布
+教学案例发布