diff --git a/app/services/courses_service.rb b/app/services/courses_service.rb index 5d2957d4c..b97fa1a64 100644 --- a/app/services/courses_service.rb +++ b/app/services/courses_service.rb @@ -334,7 +334,7 @@ class CoursesService # end groupnum = 0 groupnum = course.course_groups.length if course.course_groups - {:course => course,:syllabus_title => course.syllabus.nil? ? "":course.syllabus.title ,:work_unit => work_unit, :img_url => url_to_avatar(course),:current_user_is_member => current_user.nil? ? false : current_user.member_of_course?(course),:current_user_is_teacher => current_user.nil? ? false : is_course_teacher(current_user,course),:course_student_num => course ? course.student.count.to_s : 0,:groupnum => groupnum} + {:course => course,:syllabus_title => course.syllabus.nil? ? "":course.syllabus.title ,:work_unit => work_unit, :img_url => "/images/"+url_to_avatar(course),:current_user_is_member => current_user.nil? ? false : current_user.member_of_course?(course),:current_user_is_teacher => current_user.nil? ? false : is_course_teacher(current_user,course),:course_student_num => course ? course.student.count.to_s : 0,:groupnum => groupnum} end #创建课程 diff --git a/public/assets/wechat/edit_class_group.html b/public/assets/wechat/edit_class_group.html index 3dda96d53..4c1c612a6 100644 --- a/public/assets/wechat/edit_class_group.html +++ b/public/assets/wechat/edit_class_group.html @@ -2,7 +2,7 @@
分班管理
-
{{course.name}}
+
{{course.name}}
分班名称删除
+新增分班
diff --git a/public/assets/wechat/join_classgroup.html b/public/assets/wechat/join_classgroup.html index 9a7e9fa2d..631ec4969 100644 --- a/public/assets/wechat/join_classgroup.html +++ b/public/assets/wechat/join_classgroup.html @@ -2,7 +2,7 @@
欢迎加入班级
-
{{current_course.name}}
+
{{current_course.name}}
选择分班{{selectid}}