|
|
@ -79,7 +79,8 @@ class FilesController < ApplicationController
|
|
|
|
@result = find_course_attache q,@course,sort
|
|
|
|
@result = find_course_attache q,@course,sort
|
|
|
|
@result = visable_attachemnts @result
|
|
|
|
@result = visable_attachemnts @result
|
|
|
|
@searched_attach = paginateHelper @result,10
|
|
|
|
@searched_attach = paginateHelper @result,10
|
|
|
|
@tag_list = attachment_tag_list @result
|
|
|
|
|
|
|
|
|
|
|
|
@tag_list = get_course_tag_list @course
|
|
|
|
end
|
|
|
|
end
|
|
|
|
#rescue Exception => e
|
|
|
|
#rescue Exception => e
|
|
|
|
# #render 'stores'
|
|
|
|
# #render 'stores'
|
|
|
@ -541,7 +542,7 @@ class FilesController < ApplicationController
|
|
|
|
@result = visable_attachemnts @result
|
|
|
|
@result = visable_attachemnts @result
|
|
|
|
@result = @result.select{|attachment| attachment.tag_list.include?(@tag_name)}
|
|
|
|
@result = @result.select{|attachment| attachment.tag_list.include?(@tag_name)}
|
|
|
|
@searched_attach = paginateHelper @result,10
|
|
|
|
@searched_attach = paginateHelper @result,10
|
|
|
|
@tag_list = attachment_tag_list @result
|
|
|
|
@tag_list = get_course_tag_list @course
|
|
|
|
|
|
|
|
|
|
|
|
respond_to do |format|
|
|
|
|
respond_to do |format|
|
|
|
|
format.js
|
|
|
|
format.js
|
|
|
|