修复分页问题

hjq_new_course
huang 10 years ago
parent b3fea3e229
commit 6893b3dcab

@ -57,25 +57,27 @@ module UsersHelper
def get_resource_origin attach def get_resource_origin attach
type = attach.container_type type = attach.container_type
content = attach.container content = attach.container
case type unless content.nil?
when 'Course' case type
result = current_time_and_term_resource content when 'Course'
when 'Project' result = current_time_and_term_resource content
result = content.name when 'Project'
when 'Issue' result = content.name
result = content.subject when 'Issue'
when 'Message' result = content.subject
result = content.subject when 'Message'
when 'News' result = content.subject
result = content.title when 'News'
when 'HomewCommon' result = content.title
result = content.name when 'HomewCommon'
when 'StudentWorkScore' result = content.name
result = content.name when 'StudentWorkScore'
when 'Principal' result = content.name
result = content.name when 'Principal'
when 'OrgSubfield' result = content.name
result = content.name when 'OrgSubfield'
result = content.name
end
end end
end end

Loading…
Cancel
Save