|
|
@ -1230,12 +1230,12 @@ class StudentWorkController < ApplicationController
|
|
|
|
sheet1[count_row,8] = homework.teaching_asistant_score.nil? ? l(:label_without_score) : homework.teaching_asistant_score.round(2)
|
|
|
|
sheet1[count_row,8] = homework.teaching_asistant_score.nil? ? l(:label_without_score) : homework.teaching_asistant_score.round(2)
|
|
|
|
if @homework.anonymous_comment ==0
|
|
|
|
if @homework.anonymous_comment ==0
|
|
|
|
sheet1[count_row,9] = homework.student_score.nil? ? l(:label_without_score) : homework.student_score.round(2)
|
|
|
|
sheet1[count_row,9] = homework.student_score.nil? ? l(:label_without_score) : homework.student_score.round(2)
|
|
|
|
sheet1[count_row,10] = homework.absence_penalty
|
|
|
|
sheet1[count_row,10] = @homework.teacher_priority == 1 ? 0 : homework.absence_penalty
|
|
|
|
sheet1[count_row,11] = homework.late_penalty
|
|
|
|
sheet1[count_row,11] = @homework.teacher_priority == 1 ? 0 : homework.late_penalty
|
|
|
|
sheet1[count_row,12] = homework.respond_to?("score") ? homework.score.nil? ? l(:label_without_score) : homework.score.round(2) : l(:label_without_score)
|
|
|
|
sheet1[count_row,12] = homework.respond_to?("score") ? homework.score.nil? ? l(:label_without_score) : homework.score.round(2) : l(:label_without_score)
|
|
|
|
sheet1[count_row,13] = format_time(homework.created_at)
|
|
|
|
sheet1[count_row,13] = format_time(homework.created_at)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
sheet1[count_row,9] = homework.late_penalty
|
|
|
|
sheet1[count_row,9] = @homework.teacher_priority == 1 ? 0 : homework.late_penalty
|
|
|
|
sheet1[count_row,10] = homework.respond_to?("score") ? homework.score.nil? ? l(:label_without_score) : homework.score.round(2) : l(:label_without_score)
|
|
|
|
sheet1[count_row,10] = homework.respond_to?("score") ? homework.score.nil? ? l(:label_without_score) : homework.score.round(2) : l(:label_without_score)
|
|
|
|
sheet1[count_row,11] = format_time(homework.created_at)
|
|
|
|
sheet1[count_row,11] = format_time(homework.created_at)
|
|
|
|
end
|
|
|
|
end
|
|
|
@ -1263,12 +1263,12 @@ class StudentWorkController < ApplicationController
|
|
|
|
sheet1[count_row,9] = homework.system_score.nil? ? l(:label_without_score) : homework.system_score.round(2)
|
|
|
|
sheet1[count_row,9] = homework.system_score.nil? ? l(:label_without_score) : homework.system_score.round(2)
|
|
|
|
if @homework.anonymous_comment ==0
|
|
|
|
if @homework.anonymous_comment ==0
|
|
|
|
sheet1[count_row,10] = homework.student_score.nil? ? l(:label_without_score) : homework.student_score.round(2)
|
|
|
|
sheet1[count_row,10] = homework.student_score.nil? ? l(:label_without_score) : homework.student_score.round(2)
|
|
|
|
sheet1[count_row,11] = homework.absence_penalty
|
|
|
|
sheet1[count_row,11] = @homework.teacher_priority == 1 ? 0 : homework.absence_penalty
|
|
|
|
sheet1[count_row,12] = homework.late_penalty
|
|
|
|
sheet1[count_row,12] = @homework.teacher_priority == 1 ? 0 : homework.late_penalty
|
|
|
|
sheet1[count_row,13] = homework.respond_to?("score") ? homework.score.nil? ? l(:label_without_score) : homework.score.round(2) : l(:label_without_score)
|
|
|
|
sheet1[count_row,13] = homework.respond_to?("score") ? homework.score.nil? ? l(:label_without_score) : homework.score.round(2) : l(:label_without_score)
|
|
|
|
sheet1[count_row,14] = format_time(homework.created_at)
|
|
|
|
sheet1[count_row,14] = format_time(homework.created_at)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
sheet1[count_row,10] = homework.late_penalty
|
|
|
|
sheet1[count_row,10] = @homework.teacher_priority == 1 ? 0 : homework.late_penalty
|
|
|
|
sheet1[count_row,11] = homework.respond_to?("score") ? homework.score.nil? ? l(:label_without_score) : homework.score.round(2) : l(:label_without_score)
|
|
|
|
sheet1[count_row,11] = homework.respond_to?("score") ? homework.score.nil? ? l(:label_without_score) : homework.score.round(2) : l(:label_without_score)
|
|
|
|
sheet1[count_row,12] = format_time(homework.created_at)
|
|
|
|
sheet1[count_row,12] = format_time(homework.created_at)
|
|
|
|
end
|
|
|
|
end
|
|
|
@ -1292,12 +1292,12 @@ class StudentWorkController < ApplicationController
|
|
|
|
sheet1[count_row,5] = homework.teaching_asistant_score.nil? ? l(:label_without_score) : homework.teaching_asistant_score.round(2)
|
|
|
|
sheet1[count_row,5] = homework.teaching_asistant_score.nil? ? l(:label_without_score) : homework.teaching_asistant_score.round(2)
|
|
|
|
if @homework.anonymous_comment ==0
|
|
|
|
if @homework.anonymous_comment ==0
|
|
|
|
sheet1[count_row,6] = homework.student_score.nil? ? l(:label_without_score) : homework.student_score.round(2)
|
|
|
|
sheet1[count_row,6] = homework.student_score.nil? ? l(:label_without_score) : homework.student_score.round(2)
|
|
|
|
sheet1[count_row,7] = homework.absence_penalty
|
|
|
|
sheet1[count_row,7] = @homework.teacher_priority == 1 ? 0 : homework.absence_penalty
|
|
|
|
sheet1[count_row,8] = homework.late_penalty
|
|
|
|
sheet1[count_row,8] = @homework.teacher_priority == 1 ? 0 : homework.late_penalty
|
|
|
|
sheet1[count_row,9] = homework.respond_to?("score") ? homework.score.nil? ? l(:label_without_score) : homework.score.round(2) : l(:label_without_score)
|
|
|
|
sheet1[count_row,9] = homework.respond_to?("score") ? homework.score.nil? ? l(:label_without_score) : homework.score.round(2) : l(:label_without_score)
|
|
|
|
sheet1[count_row,10] = format_time(homework.created_at)
|
|
|
|
sheet1[count_row,10] = format_time(homework.created_at)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
sheet1[count_row,6] = homework.late_penalty
|
|
|
|
sheet1[count_row,6] = @homework.teacher_priority == 1 ? 0 : homework.late_penalty
|
|
|
|
sheet1[count_row,7] = homework.respond_to?("score") ? homework.score.nil? ? l(:label_without_score) : homework.score.round(2) : l(:label_without_score)
|
|
|
|
sheet1[count_row,7] = homework.respond_to?("score") ? homework.score.nil? ? l(:label_without_score) : homework.score.round(2) : l(:label_without_score)
|
|
|
|
sheet1[count_row,8] = format_time(homework.created_at)
|
|
|
|
sheet1[count_row,8] = format_time(homework.created_at)
|
|
|
|
end
|
|
|
|
end
|
|
|
|