|
|
|
@ -155,7 +155,7 @@
|
|
|
|
|
<% else %>
|
|
|
|
|
<% student_works = homework_common.student_works.select("student_works.*,IF(final_score is null,null,final_score - absence_penalty - late_penalty) as score").order("score desc") %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% student_works.each_with_index do |sw, i| %>
|
|
|
|
|
<% student_works.includes(:user).each_with_index do |sw, i| %>
|
|
|
|
|
<div class="fl mr10 w100" style="text-align:center;">
|
|
|
|
|
<a href="javascript:void(0);" class="linkBlue">
|
|
|
|
|
<% if User.current.member_of_course?(homework_common.course) || User.current.admin? || homework_common.is_open == 1 %>
|
|
|
|
|