|
|
|
@ -19,6 +19,7 @@ class TidingsController < ApplicationController
|
|
|
|
|
end
|
|
|
|
|
tidings = tidings.where(tiding_type: tiding_types) if tiding_types.present?
|
|
|
|
|
|
|
|
|
|
# coures_message_id = current_user.manage_courses.not_deleted.course_messages.join_course_requests.unhandled
|
|
|
|
|
tidings = tidings.where(container_type: 'JoinCourse') if params[:type] == 'course_apply'
|
|
|
|
|
@course_apply_count = tidings.where("created_at > '#{@onclick_time}'").where(container_type: 'JoinCourse').count
|
|
|
|
|
|
|
|
|
|