<!-- 作品列表，显示某一个作品的信息 -->
<ul class="hwork_ul <%= cycle("b_grey", "") %>" id="student_work_<%= student_work.id%>">
  <li class="hwork_num">
    <span>
      <%= student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id%>
    </span>
  </li>
  <li class=" hwork_name ">
    <%= link_to student_work.user.show_name,user_path(student_work.user),:title => student_work.user.show_name, :class => "c_blue02"%>
  </li>
  <li class=" hwork_tit_une">
    <% student_work_name = student_work.name.nil? || student_work.name.empty? ? student_work.user.show_name + '的作品' : student_work.name%>
    <%= link_to student_work_name, student_work_path(student_work),:remote => true,:title => student_work.name, :class => "c_blue02"%>
  </li>
  <li class=" hwork_time_c">
    <% if Time.parse(@homework.end_time.to_s).strftime("%Y-%m-%d") < Time.parse(student_work.created_at.to_s).strftime("%Y-%m-%d") %>
        <span class="c_red">迟交</span>
    <% else%>
        <%= student_work.created_at.strftime("%m-%d").to_s%>
    <% end %>
  </li>
  <li class=" hwork_score <%= score_color student_work.teacher_score%>">
    <%= student_work.teacher_score.nil? ? "--" : format("%.1f",student_work.teacher_score)%>
  </li>
  <li class=" hwork_score <%= score_color student_work.teaching_asistant_score%>">
    <%= student_work.teaching_asistant_score.nil? ? "--" : format("%.1f",student_work.teaching_asistant_score)%>
  </li>
  <% score = student_work.respond_to?("score") ? student_work.score : student_work.final_score - student_work.absence_penalty - student_work.late_penalty%>
  <li class=" hwork_score <%= score_color score%> student_final_scor_info ml4">
    <%= score.nil? ? "--" : format("%.1f",score)%>
    <% unless score.nil?%>
        <!-- 非匿评作品不显示缺评扣分 -->
        <div class="info_ni">
          作品最终评分为
          <span class="c_red">&nbsp;<%= student_work.final_score%>&nbsp;</span>分。
          迟交扣分
          <span class="c_red">&nbsp;<%= student_work.late_penalty%>&nbsp;</span>分，
          最终成绩为
          <span class="c_red">&nbsp;<%= format("%.1f",score)%>&nbsp;</span>分。
        </div>
    <% end%>
  </li>
  <div class="cl"></div>
</ul><!---hwork_ul end-->