|
|
|
@ -32,8 +32,7 @@ class FilesController < ApplicationController
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
@attachments = @attachments.includes(author: [:user_extension, :course_members])
|
|
|
|
|
.ordered(sort: sort.to_i, sort_type: sort_type.strip)
|
|
|
|
|
@attachments = @attachments.ordered(sort: sort.to_i, sort_type: sort_type.strip)
|
|
|
|
|
|
|
|
|
|
@total_count = @attachments.size
|
|
|
|
|
@unlink_count = @attachments.no_link.size
|
|
|
|
@ -59,7 +58,8 @@ class FilesController < ApplicationController
|
|
|
|
|
@attachments = @attachments.no_link
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
@attachments = @attachments.page(@page).per(@page_size)
|
|
|
|
|
@attachments = @attachments.includes(:course_second_category, author: [:user_extension, :course_members])
|
|
|
|
|
.page(@page).per(@page_size)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def bulk_publish
|
|
|
|
|