|
|
@ -179,7 +179,7 @@ module ExportHelper
|
|
|
|
# 关卡评语
|
|
|
|
# 关卡评语
|
|
|
|
shixun.challenges.pluck(:id).each do |challenge_id|
|
|
|
|
shixun.challenges.pluck(:id).each do |challenge_id|
|
|
|
|
challenge_comment = w.shixun_work_comments.select{|comment| comment.challenge_id == challenge_id}.first
|
|
|
|
challenge_comment = w.shixun_work_comments.select{|comment| comment.challenge_id == challenge_id}.first
|
|
|
|
row_cells_column << challenge_comment ? "学生可见:\n #{challenge_comment.comment.to_s} \n\n 老师可见:\n#{challenge_comment.hidden_comment.to_s}" : "--"
|
|
|
|
row_cells_column << challenge_comment.present? ? "学生可见:\n #{challenge_comment.comment.to_s} \n\n 老师可见:\n#{challenge_comment.hidden_comment.to_s}" : "--"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
row_cells_column = row_cells_column.reject(&:blank?)
|
|
|
|
row_cells_column = row_cells_column.reject(&:blank?)
|
|
|
|