diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 031c4399..5370e310 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
@@ -3080,7 +3080,7 @@ module ApplicationHelper
elsif @syllabus
title << (@syllabus.title.nil? ? "课堂" : @syllabus.title)
else
- title << (User.current.anonymous? ? "Educoder实践教学" : User.current.show_name)
+ title << (User.current.anonymous? ? "EduCoder实践教学" : User.current.show_name)
end
# if first_page.nil? || first_page.web_title.nil?
# title << Setting.app_title unless Setting.app_title == title.last
@@ -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)
@@ -6490,7 +6490,7 @@ def visable_attachemnts_incourse course
member = course.members.where(:user_id => User.current.id).first
if member.try(:course_group_id).to_i == 0 && attachment.unified_setting
result << attachment
- elsif attachment.attachment_group_settings.where("course_group_id = #{member.try(:course_group_id)} and publish_time > '#{Time.now}'").count == 0
+ elsif attachment.attachment_group_settings.where("course_group_id = #{member.try(:course_group_id).to_i} and publish_time > '#{Time.now}'").count == 0
result << attachment
end
end
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/exercise/_exercise_student.html.erb b/app/views/exercise/_exercise_student.html.erb
index a63191db..6b5ecd5e 100644
--- a/app/views/exercise/_exercise_student.html.erb
+++ b/app/views/exercise/_exercise_student.html.erb
@@ -203,7 +203,7 @@
<% end %>
@@ -250,7 +250,7 @@
<% end %>
diff --git a/app/views/exercise/_exercise_student_result.html.erb b/app/views/exercise/_exercise_student_result.html.erb
index 8b6f7ab6..7b78e5fc 100644
--- a/app/views/exercise/_exercise_student_result.html.erb
+++ b/app/views/exercise/_exercise_student_result.html.erb
@@ -156,7 +156,7 @@
<% end %>
@@ -175,7 +175,7 @@
<% end %>
diff --git a/app/views/exercise/_show_MC.html.erb b/app/views/exercise/_show_MC.html.erb
index 1f74be73..546a7255 100644
--- a/app/views/exercise/_show_MC.html.erb
+++ b/app/views/exercise/_show_MC.html.erb
@@ -23,7 +23,7 @@
<% end %>
diff --git a/app/views/exercise/_show_MCQ.html.erb b/app/views/exercise/_show_MCQ.html.erb
index 57c36496..4e336e91 100644
--- a/app/views/exercise/_show_MCQ.html.erb
+++ b/app/views/exercise/_show_MCQ.html.erb
@@ -23,7 +23,7 @@
<% end %>
diff --git a/app/views/exercise/_statistics_result_table.html.erb b/app/views/exercise/_statistics_result_table.html.erb
index 964def05..6904be36 100644
--- a/app/views/exercise/_statistics_result_table.html.erb
+++ b/app/views/exercise/_statistics_result_table.html.erb
@@ -17,9 +17,9 @@
<% exercise_question.exercise_choices.reorder("choice_position").each do |exercise_choice| %>
- <%= exercise_choice.choice_text %> -
+<%= count %>
上传文档
+上传教学案例
请输入标题
- <%= 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 252dddec..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' %> > 详情
@@ -100,8 +100,12 @@ }); $(function(){ var height=document.getElementById("private_reason_ul").offsetHeight; + var one=parseInt($("#private_reason_ul").find("li").eq(0).height())+10; + var two=parseInt($("#private_reason_ul").find("li").eq(1).height()); + var plus=one+two; if(parseInt(height)>166){ $("#actionPanel").html('点击展开'); + $(".private_reason").css({maxHeight:plus+"px"}); } }) \ No newline at end of file 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 @@
文库发布
+教学案例发布