|
|
@ -74,7 +74,7 @@ class CoursesController < ApplicationController
|
|
|
|
else
|
|
|
|
else
|
|
|
|
@state = 5 #未登录
|
|
|
|
@state = 5 #未登录
|
|
|
|
end
|
|
|
|
end
|
|
|
|
@object_id = params[:object_id]
|
|
|
|
@object_id = @course.id if @course
|
|
|
|
respond_to do |format|
|
|
|
|
respond_to do |format|
|
|
|
|
format.js #{ render :partial => 'set_join', :locals => {:user => @user, :course => @course, :object_id => params[:object_id]} }
|
|
|
|
format.js #{ render :partial => 'set_join', :locals => {:user => @user, :course => @course, :object_id => params[:object_id]} }
|
|
|
|
end
|
|
|
|
end
|
|
|
@ -1305,12 +1305,12 @@ class CoursesController < ApplicationController
|
|
|
|
sheet[count_row,7] = stu.teaching_asistant_score.nil? ? l(:label_without_score) : stu.teaching_asistant_score.round(2)
|
|
|
|
sheet[count_row,7] = stu.teaching_asistant_score.nil? ? l(:label_without_score) : stu.teaching_asistant_score.round(2)
|
|
|
|
if home.anonymous_comment ==0
|
|
|
|
if home.anonymous_comment ==0
|
|
|
|
sheet[count_row,8] = stu.student_score.nil? ? l(:label_without_score) : stu.student_score.round(2)
|
|
|
|
sheet[count_row,8] = stu.student_score.nil? ? l(:label_without_score) : stu.student_score.round(2)
|
|
|
|
sheet[count_row,9] = stu.absence_penalty
|
|
|
|
sheet[count_row,9] = home.teacher_priority == 1 ? 0 : stu.absence_penalty
|
|
|
|
sheet[count_row,10] = stu.late_penalty
|
|
|
|
sheet[count_row,10] = home.teacher_priority == 1 ? 0 : stu.late_penalty
|
|
|
|
sheet[count_row,11] = stu.work_score.nil? ? l(:label_without_score) : stu.work_score.round(2)
|
|
|
|
sheet[count_row,11] = stu.work_score.nil? ? l(:label_without_score) : stu.work_score.round(2)
|
|
|
|
sheet[count_row,12] = format_time(stu.created_at)
|
|
|
|
sheet[count_row,12] = format_time(stu.created_at)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
sheet[count_row,8] = stu.late_penalty
|
|
|
|
sheet[count_row,8] = home.teacher_priority == 1 ? 0 : stu.late_penalty
|
|
|
|
sheet[count_row,9] = stu.work_score.nil? ? l(:label_without_score) : stu.work_score.round(2)
|
|
|
|
sheet[count_row,9] = stu.work_score.nil? ? l(:label_without_score) : stu.work_score.round(2)
|
|
|
|
sheet[count_row,10] = format_time(stu.created_at)
|
|
|
|
sheet[count_row,10] = format_time(stu.created_at)
|
|
|
|
end
|
|
|
|
end
|
|
|
@ -1338,12 +1338,12 @@ class CoursesController < ApplicationController
|
|
|
|
sheet[count_row,8] = stu.system_score.nil? ? l(:label_without_score) : stu.system_score.round(2)
|
|
|
|
sheet[count_row,8] = stu.system_score.nil? ? l(:label_without_score) : stu.system_score.round(2)
|
|
|
|
if home.anonymous_comment ==0
|
|
|
|
if home.anonymous_comment ==0
|
|
|
|
sheet[count_row,9] = stu.student_score.nil? ? l(:label_without_score) : stu.student_score.round(2)
|
|
|
|
sheet[count_row,9] = stu.student_score.nil? ? l(:label_without_score) : stu.student_score.round(2)
|
|
|
|
sheet[count_row,10] = stu.absence_penalty
|
|
|
|
sheet[count_row,10] = home.teacher_priority == 1 ? 0 : stu.absence_penalty
|
|
|
|
sheet[count_row,11] = stu.late_penalty
|
|
|
|
sheet[count_row,11] = home.teacher_priority == 1 ? 0 : stu.late_penalty
|
|
|
|
sheet[count_row,12] = stu.work_score.nil? ? l(:label_without_score) : stu.work_score.round(2)
|
|
|
|
sheet[count_row,12] = stu.work_score.nil? ? l(:label_without_score) : stu.work_score.round(2)
|
|
|
|
sheet[count_row,13] = format_time(stu.created_at)
|
|
|
|
sheet[count_row,13] = format_time(stu.created_at)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
sheet[count_row,9] = stu.late_penalty
|
|
|
|
sheet[count_row,9] = home.teacher_priority == 1 ? 0 : stu.late_penalty
|
|
|
|
sheet[count_row,10] = stu.work_score.nil? ? l(:label_without_score) : stu.work_score.round(2)
|
|
|
|
sheet[count_row,10] = stu.work_score.nil? ? l(:label_without_score) : stu.work_score.round(2)
|
|
|
|
sheet[count_row,11] = format_time(stu.created_at)
|
|
|
|
sheet[count_row,11] = format_time(stu.created_at)
|
|
|
|
end
|
|
|
|
end
|
|
|
@ -1369,12 +1369,12 @@ class CoursesController < ApplicationController
|
|
|
|
sheet[count_row,6] = stu.teaching_asistant_score.nil? ? l(:label_without_score) : stu.teaching_asistant_score.round(2)
|
|
|
|
sheet[count_row,6] = stu.teaching_asistant_score.nil? ? l(:label_without_score) : stu.teaching_asistant_score.round(2)
|
|
|
|
if home.anonymous_comment ==0
|
|
|
|
if home.anonymous_comment ==0
|
|
|
|
sheet[count_row,7] = stu.student_score.nil? ? l(:label_without_score) : stu.student_score.round(2)
|
|
|
|
sheet[count_row,7] = stu.student_score.nil? ? l(:label_without_score) : stu.student_score.round(2)
|
|
|
|
sheet[count_row,8] = stu.absence_penalty
|
|
|
|
sheet[count_row,8] = home.teacher_priority == 1 ? 0 : stu.absence_penalty
|
|
|
|
sheet[count_row,9] = stu.late_penalty
|
|
|
|
sheet[count_row,9] = home.teacher_priority == 1 ? 0 : stu.late_penalty
|
|
|
|
sheet[count_row,10] = stu.work_score.nil? ? l(:label_without_score) : stu.work_score.round(2)
|
|
|
|
sheet[count_row,10] = stu.work_score.nil? ? l(:label_without_score) : stu.work_score.round(2)
|
|
|
|
sheet[count_row,11] = format_time(stu.created_at)
|
|
|
|
sheet[count_row,11] = format_time(stu.created_at)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
sheet[count_row,7] = stu.late_penalty
|
|
|
|
sheet[count_row,7] = home.teacher_priority == 1 ? 0 : stu.late_penalty
|
|
|
|
sheet[count_row,8] = stu.work_score.nil? ? l(:label_without_score) : stu.work_score.round(2)
|
|
|
|
sheet[count_row,8] = stu.work_score.nil? ? l(:label_without_score) : stu.work_score.round(2)
|
|
|
|
sheet[count_row,9] = format_time(stu.created_at)
|
|
|
|
sheet[count_row,9] = format_time(stu.created_at)
|
|
|
|
end
|
|
|
|
end
|
|
|
|