|
|
@ -60,8 +60,7 @@ class FilesController < ApplicationController
|
|
|
|
sort = "#{@sort} #{@order}"
|
|
|
|
sort = "#{@sort} #{@order}"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
show_attachments [@course]
|
|
|
|
# show_attachments [@course]
|
|
|
|
@tag_list = attachment_tag_list @all_attachments
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
begin
|
|
|
|
begin
|
|
|
|
q = "%#{params[:name].strip}%"
|
|
|
|
q = "%#{params[:name].strip}%"
|
|
|
@ -76,6 +75,8 @@ class FilesController < ApplicationController
|
|
|
|
@searched_attach = paginateHelper @result,10
|
|
|
|
@searched_attach = paginateHelper @result,10
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@tag_list = attachment_tag_list @searched_attach
|
|
|
|
|
|
|
|
|
|
|
|
#rescue Exception => e
|
|
|
|
#rescue Exception => e
|
|
|
|
# #render 'stores'
|
|
|
|
# #render 'stores'
|
|
|
|
# redirect_to search_course_files_url
|
|
|
|
# redirect_to search_course_files_url
|
|
|
|