|
|
@ -8,19 +8,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
.tscore_con h2{ display:block; background:#eaeaea; font-size:14px; color:#343333; height:31px; width: auto; text-align: center; padding-top:5px;}
|
|
|
|
.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{ width:370px; margin:15px auto;}
|
|
|
|
.tscore_box li{ height:25px;}
|
|
|
|
.tscore_box li{ height:25px;}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="tscore_con" id="user_score">
|
|
|
|
<div class="tscore_con" id="user_score">
|
|
|
|
<h2><%= @member_score.user.name %> 历次作业积分</h2>
|
|
|
|
<h2><%= @member_score.user.name %> 历次作业积分</h2>
|
|
|
|
<ul class="tscore_box">
|
|
|
|
<ul class="tscore_box" style="max-height: 400px; overflow: auto;">
|
|
|
|
<li ><span class="c_blue02 w280">作业名称</span><span class="c_blue02 w70">得分</span></li>
|
|
|
|
<li ><span class="c_blue02 w280">作业名称</span><span class="c_blue02 w70">得分</span></li>
|
|
|
|
<% @member_score.homework_common_list.each do |homework_common| %>
|
|
|
|
<% @member_score.homework_common_list.each_with_index do |homework_common, index| %>
|
|
|
|
<li>
|
|
|
|
<li>
|
|
|
|
<span class="c_grey02 w280 hiddent">
|
|
|
|
<span class="c_grey02 w280 hiddent">
|
|
|
|
<%= homework_common.name %>
|
|
|
|
作业<%=index + 1 %>:<%= homework_common.name %>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<span class="c_red w70">
|
|
|
|
<span class="c_red w70">
|
|
|
|
<% final_score = @member_score.homework_common_score(homework_common).first%>
|
|
|
|
<% final_score = @member_score.homework_common_score(homework_common).first%>
|
|
|
|