@ -414,6 +413,9 @@ class CoursesController < ApplicationController
end
defsettings
#添加成员消息状态
join_course_messages=CourseMessage.where("user_id =? and course_message_type =? and course_id =? and status = ? and viewed =?",User.current.id,'JoinCourse',@course.id,1,0)
join_course_messages.update_all(:viewed=>true)
ifUser.current.allowed_to?(:as_teacher,@course)
@select_tab=params[:tab]
@issue_custom_fields=IssueCustomField.sorted.all
@ -905,6 +907,7 @@ class CoursesController < ApplicationController
end
@type=params[:type]
@left_nav_type=1
respond_todo|format|
format.js
format.html{render:layout=>'base_courses'}
@ -936,6 +939,7 @@ class CoursesController < ApplicationController
end
@jour=paginateHelper@jours,10
@state=false
@left_nav_type=6
respond_todo|format|
format.html{render:layout=>'base_courses'}
format.api
@ -1119,6 +1123,14 @@ class CoursesController < ApplicationController