<style>
    .c_grey02{ color:#666666;}
    .c_blue02{ color:#15bcce; font-weight: bold;}
    .w280{ display:block; width:280px;float:left;}
    .w70{ display:block;width:70px; text-align:center; float:left;}
    .c_red{ color:#e50000;}
    .c_blue03{ color:#0d90c4;}


    .tscore_con h2{ display:block; background:#eaeaea; font-size:14px; color:#343333; height:31px; width: auto;  text-align: center; padding-top:5px;}
    .tscore_box{ width:370px; margin:15px auto;}
    .tscore_box li{ height:25px;}
</style>


  <div class="tscore_con" id="user_score">
    <h2><%= @member_score.user.name %> 历次作业积分</h2>
    <ul class="tscore_box" style="max-height: 400px; overflow: auto;">
      <li ><span class="c_blue02 w280">作业名称</span><span class="c_blue02 w70">得分</span></li>
      <% @member_score.homework_common_list.each_with_index do |homework_common, index| %>
            <li>
              <span class="c_grey02 w280 hiddent">
                作业<%=index + 1 %>：<%= homework_common.name %>
              </span>
              <span class="c_red w70">
                <% final_score = @member_score.homework_common_score(homework_common).first%>
                <%= final_score.nil? || final_score.work_score.nil? ? "--" : format("%0.2f", final_score.work_score < 0 ? 0 : final_score.work_score) %>
              </span>
            </li>
       <% end %>
      <li><span class="c_blue03 w280">作业积分（总分）</span><span class="c_red w70"><%= format("%0.2f",(@member_score.student_work_score_sum).first.score.nil? ? 0 : (@member_score.student_work_score_sum).first.score)  %></span></li>
    </ul>

  </div>
