班级作业的作品列表-分组,tip调整
This commit is contained in:
parent
d35245f7e4
commit
4ea2c41188
|
@ -26,9 +26,21 @@
|
|||
</span>
|
||||
</div>
|
||||
<div class="flex-cell student_work_<%= st.id%>">
|
||||
<span class="<%= score_color (!score_open || st.teaching_asistant_score.nil? ? nil : st.teaching_asistant_score) %>">
|
||||
<%= st.teaching_asistant_score.nil? ? "--" : (!score_open ? "**" : format("%.1f",st.teaching_asistant_score))%>
|
||||
</span>
|
||||
<div class="<%= score_color (!score_open || st.teaching_asistant_score.nil? ? nil : st.teaching_asistant_score) %> student_score_info pr">
|
||||
<% if st.teaching_asistant_score.nil? || !score_open %>
|
||||
<span title=""><%=st.teaching_asistant_score.nil? ? "--" : "**" %></span>
|
||||
<% else %>
|
||||
<%= format("%.1f",st.teaching_asistant_score) %>
|
||||
<div class="anonymous-tip none" style="line-height: 18px; top:-5px; right:-373px;">
|
||||
<em></em>
|
||||
<font></font>
|
||||
现共有
|
||||
<span class="c_red"> <%= st.student_works_scores.where(:reviewer_role => 2).group_by(&:user_id).count%> </span>
|
||||
名助教进行了评分,<%=@homework.homework_detail_manual.ta_mode == 1 ? "平均" : "复审" %>分为
|
||||
<span class="c_red"> <%= format("%.1f",st.teaching_asistant_score)%> </span>分。
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
<% if @homework.anonymous_comment == 0 %>
|
||||
<div class="flex-cell student_work_<%= st.id%>">
|
||||
|
@ -57,12 +69,14 @@
|
|||
<span class="linkBlue">
|
||||
(<%= anon_count %>)
|
||||
</span>
|
||||
<div class="g_infoNi none">
|
||||
现共有
|
||||
<span class="c_red"> <%= anon_count %> </span>
|
||||
名学生进行了匿评,平均分为
|
||||
<span class="c_red"> <%= format("%.1f", st.student_score) %> </span>分。
|
||||
</div>
|
||||
<div class="anonymous-tip none" style="line-height: 18px; top:-5px; right:-288px;">
|
||||
<em></em>
|
||||
<font></font>
|
||||
现共有
|
||||
<span class="c_red"> <%= anon_count%> </span>
|
||||
名学生进行了匿评,平均分为
|
||||
<span class="c_red"> <%= format("%.1f",st.student_score)%> </span>分。
|
||||
</div>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
|
@ -73,7 +87,7 @@
|
|||
<div class="<%= score_color (!score_open || score.nil? ? nil : score)%> student_final_scor_info pr" style="display: inline">
|
||||
<%= score.nil? ? "--" : (!score_open ? "**" : format("%.1f",score<0 ? 0 : score))%>
|
||||
<% unless !score_open || score.nil?%>
|
||||
<div class="score-tip none tl" style="line-height: 18px; top:-32px; right:-273px;">
|
||||
<div class="score-tip none tl" style="line-height: 18px; top:-50px; right:-273px;">
|
||||
<em></em>
|
||||
<font></font>
|
||||
作品最终评分为
|
||||
|
@ -105,17 +119,10 @@
|
|||
<% if User.current.allowed_to?(:as_teacher, st.homework_common.course) %>
|
||||
<div class="fr ml5" style="width:25px; color: #3b94d6; white-space:nowrap; text-align:right; margin-right:5px; cursor: pointer;" onclick="show_student_work('<%= student_work_path(st)%>')">评分</div>
|
||||
<% end %>
|
||||
<div class="hworkTip" style="display: none; left:710px; top:20px; white-space:nowrap; right:auto;" id="work_click_<%= st.id%>"><em></em><span></span><font class="fontGrey2">点击进行评分</font></div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(".student_work_<%= st.id%>").mouseenter(function(){
|
||||
$("#work_click_<%= st.id%>").show();
|
||||
}).mouseleave(function(){
|
||||
$("#work_click_<%= st.id%>").hide();
|
||||
}).mouse;
|
||||
|
||||
$(".syllabus_class_list").mouseenter(function(){
|
||||
$(this).css("background-color","#f6fafd");
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue