匿评评分,成绩提示框的显示
This commit is contained in:
parent
53d6c6853d
commit
47cdf1231d
|
@ -41,13 +41,12 @@
|
||||||
<%= student_work.teaching_asistant_score.nil? ? "--" : format("%.1f",student_work.teaching_asistant_score)%>
|
<%= student_work.teaching_asistant_score.nil? ? "--" : format("%.1f",student_work.teaching_asistant_score)%>
|
||||||
</li>
|
</li>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
<li class="hworkList50 <%= score_color student_work.student_score%> student_score_info">
|
||||||
<li class="hworkList50 <%= score_color student_work.student_score%>">
|
|
||||||
<%= student_work.student_score.nil? ? "--" : format("%.1f",student_work.student_score)%>
|
<%= student_work.student_score.nil? ? "--" : format("%.1f",student_work.student_score)%>
|
||||||
<% unless student_work.student_score.nil? || student_work.homework_common.homework_type == 2%>
|
<% unless student_work.student_score.nil?%>
|
||||||
<span class="linkBlue">
|
<span class="linkBlue">
|
||||||
(<%= student_work.student_works_scores.where(:reviewer_role => 3).count%>)
|
(<%= student_work.student_works_scores.where(:reviewer_role => 3).count%>)
|
||||||
</span>
|
</span>
|
||||||
<div class="infoNi none">
|
<div class="infoNi none">
|
||||||
现共有
|
现共有
|
||||||
<span class="c_red"> <%= student_work.student_works_scores.where(:reviewer_role => 3).count%> </span>
|
<span class="c_red"> <%= student_work.student_works_scores.where(:reviewer_role => 3).count%> </span>
|
||||||
|
@ -58,5 +57,20 @@
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<!-- 成绩 -->
|
<!-- 成绩 -->
|
||||||
<li class="hworkList50 c_red">90</li>
|
<% score = student_work.respond_to?("score") ? student_work.score : student_work.final_score - student_work.absence_penalty - student_work.late_penalty%>
|
||||||
|
<li class="hworkList50 <%= score_color score%> student_final_scor_info">
|
||||||
|
<%= score.nil? ? "--" : format("%.1f",score)%>
|
||||||
|
<% unless score.nil?%>
|
||||||
|
<div class="info_ni">
|
||||||
|
作品最终评分为
|
||||||
|
<span class="c_red"> <%= student_work.final_score%> </span>分。
|
||||||
|
迟交扣分
|
||||||
|
<span class="c_red"> <%= student_work.late_penalty%> </span>分,
|
||||||
|
缺评扣分
|
||||||
|
<span class="c_red"> <%= student_work.absence_penalty%> </span>分,
|
||||||
|
最终成绩为
|
||||||
|
<span class="c_red"> <%= format("%.1f",score)%> </span>分。
|
||||||
|
</div>
|
||||||
|
<% end%>
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
|
@ -881,39 +881,27 @@ function goTopEx() {
|
||||||
|
|
||||||
$(function(){
|
$(function(){
|
||||||
//匿评评分提示
|
//匿评评分提示
|
||||||
$(".student_score_info").bind("mouseover",function(e){
|
$(".student_score_info").live("mouseover",function(){
|
||||||
//alert($(this).html());
|
|
||||||
$(this).find("div").show();
|
$(this).find("div").show();
|
||||||
//$(this).find("div").css("top",e.pageY);
|
|
||||||
//$(this).find("div").css("left",e.pageX);
|
|
||||||
});
|
});
|
||||||
$(".student_score_info").bind("mouseout",function(e){
|
$(".student_score_info").live("mouseout",function(){
|
||||||
//alert($(this).html());
|
|
||||||
$(this).find("div").hide();
|
$(this).find("div").hide();
|
||||||
});
|
});
|
||||||
//最终成绩提示
|
//最终成绩提示
|
||||||
$(".student_final_scor_info").bind("mouseover",function(e){
|
$(".student_final_scor_info").live("mouseover",function(){
|
||||||
//alert($(this).html());
|
|
||||||
$(this).find("div").show();
|
$(this).find("div").show();
|
||||||
//$(this).find("div").css("top",e.pageY);
|
|
||||||
//$(this).find("div").css("left",e.pageX);
|
|
||||||
});
|
});
|
||||||
$(".student_final_scor_info").bind("mouseout",function(e){
|
$(".student_final_scor_info").live("mouseout",function(){
|
||||||
//alert($(this).html());
|
|
||||||
$(this).find("div").hide();
|
$(this).find("div").hide();
|
||||||
});
|
});
|
||||||
|
|
||||||
$("#about_project label").eq(1).remove();
|
$("#about_project label").eq(1).remove();
|
||||||
|
|
||||||
//附件下载提示
|
//附件下载提示
|
||||||
$(".zip_download_alert").bind("mouseover",function(e){
|
$(".zip_download_alert").bind("mouseover",function(){
|
||||||
//alert($(this).html());
|
|
||||||
$(this).next("div").show();
|
$(this).next("div").show();
|
||||||
//$(this).next("div").css("top",e.pageY);
|
|
||||||
//$(this).next("div").css("left",e.pageX);
|
|
||||||
});
|
});
|
||||||
$(".zip_download_alert").bind("mouseout",function(e){
|
$(".zip_download_alert").bind("mouseout",function(){
|
||||||
//alert($(this).html());
|
|
||||||
$(this).next("div").hide();
|
$(this).next("div").hide();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue