<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:350px; 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">
      <li ><span class="c_blue02 w280">作业名称</span><span class="c_blue02 w70">得分</span></li>
      <% @member_score.student_homework_score[0].each do |homework_score| %>
            <li>
              <span class="c_grey02 w280">
                <%= homework_score.name %>
              </span>
              <span class="c_red w70">
                <%= format("%0.2f",homework_score[:score].nil? ? 0 : homework_score[:score]) %>
              </span>
            </li>
       <% end %>
      <li><span class="c_blue03 w280">作业积分（总得分）</span><span class="c_red w70"><%= @member_score.student_homework_score[1] %></span></li>
    </ul>

  </div>
