|
|
@ -23,8 +23,8 @@ class FilesController < ApplicationController
|
|
|
|
|
|
|
|
|
|
|
|
get_category(@course, course_second_category_id)
|
|
|
|
get_category(@course, course_second_category_id)
|
|
|
|
@total_count = @attachments.size
|
|
|
|
@total_count = @attachments.size
|
|
|
|
@public_count = @attachments.publiced.size
|
|
|
|
@publish_count = @attachments.published.size
|
|
|
|
@private_count = @total_count - @public_count
|
|
|
|
@unpublish_count = @total_count - @publish_count
|
|
|
|
|
|
|
|
|
|
|
|
@attachments = @attachments.by_keywords(params[:search])
|
|
|
|
@attachments = @attachments.by_keywords(params[:search])
|
|
|
|
@attachments =
|
|
|
|
@attachments =
|
|
|
|