作品列表增加时间显示,相应界面调整
This commit is contained in:
parent
5b98dd83b2
commit
857110d537
|
@ -11,14 +11,17 @@
|
||||||
<li class=" hwork_tit">
|
<li class=" hwork_tit">
|
||||||
<%= link_to student_work.name, student_work_path(student_work),:remote => true,:title => student_work.name, :class => "c_blue02"%>
|
<%= link_to student_work.name, student_work_path(student_work),:remote => true,:title => student_work.name, :class => "c_blue02"%>
|
||||||
</li>
|
</li>
|
||||||
<li class=" hwork_code <%= student_work.teacher_score.nil? ? 'c_grey' : 'c_red'%> mr18">
|
<li class=" hwork_time_c">
|
||||||
<%= student_work.teacher_score.nil? ? "--" : format("%.2f",student_work.teacher_score)%>
|
06-01
|
||||||
</li>
|
</li>
|
||||||
<li class=" hwork_code <%= student_work.teaching_asistant_score.nil? ? 'c_grey' : 'c_red'%> mr18">
|
<li class=" hwork_score c_red">
|
||||||
<%= student_work.teaching_asistant_score.nil? ? "--" : format("%.2f",student_work.teaching_asistant_score)%>
|
<%= student_work.teacher_score.nil? ? "--" : format("%.1f",student_work.teacher_score)%>
|
||||||
</li>
|
</li>
|
||||||
<li class=" hwork_code02 <%= student_work.student_score.nil? ? 'c_grey' : 'c_red'%> mr18 student_score_info" >
|
<li class=" hwork_score c_red">
|
||||||
<%= student_work.student_score.nil? ? "--" : format("%.2f",student_work.student_score)%>
|
<%= student_work.teaching_asistant_score.nil? ? "--" : format("%.1f",student_work.teaching_asistant_score)%>
|
||||||
|
</li>
|
||||||
|
<li class=" hwork_code02 <%= student_work.student_score.nil? ? 'c_grey' : 'c_red'%> student_score_info" >
|
||||||
|
<%= student_work.student_score.nil? ? "--" : format("%.1f",student_work.student_score)%>
|
||||||
<% unless student_work.student_score.nil?%>
|
<% unless student_work.student_score.nil?%>
|
||||||
<span class="c_blue">
|
<span class="c_blue">
|
||||||
(<%= student_work.student_works_scores.where(:reviewer_role => 3).count%>)
|
(<%= student_work.student_works_scores.where(:reviewer_role => 3).count%>)
|
||||||
|
@ -27,12 +30,12 @@
|
||||||
现共有
|
现共有
|
||||||
<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>
|
||||||
名学生进行了匿评,平均分为
|
名学生进行了匿评,平均分为
|
||||||
<span class="c_red"> <%= format("%.2f",student_work.student_score)%> </span>分。
|
<span class="c_red"> <%= format("%.1f",student_work.student_score)%> </span>分。
|
||||||
</div>
|
</div>
|
||||||
<% end%>
|
<% end%>
|
||||||
</li>
|
</li>
|
||||||
<li class=" hwork_code <%= student_work.final_score.nil? ? 'c_grey' : 'c_red'%>">
|
<li class=" hwork_score <%= student_work.final_score.nil? ? 'c_grey' : 'c_red'%>">
|
||||||
<%= student_work.final_score.nil? ? "--" : format("%.2f",student_work.final_score)%>
|
<%= student_work.final_score.nil? ? "--" : format("%.1f",student_work.final_score)%>
|
||||||
</li>
|
</li>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
</ul><!---hwork_ul end-->
|
</ul><!---hwork_ul end-->
|
|
@ -2,30 +2,33 @@
|
||||||
<span class="c_dark f14 fb fl">学号</span>
|
<span class="c_dark f14 fb fl">学号</span>
|
||||||
</li>
|
</li>
|
||||||
<li class=" hwork_name f14 fb c_dark">
|
<li class=" hwork_name f14 fb c_dark">
|
||||||
学生姓名
|
姓名
|
||||||
</li>
|
</li>
|
||||||
<li class="hwork_tit">
|
<li class="hwork_tit">
|
||||||
<span class="c_dark f14 fb fl">作品名称</span>
|
<span class="c_dark f14 fb fl">作品名称</span>
|
||||||
</li>
|
</li>
|
||||||
<li class="mr5 w70">
|
<li class=" hwork_time f14 fb c_dark">
|
||||||
<%= link_to "教师评分",@show_all ? student_work_index_path(:homework => @homework.id,:order => "teacher_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "f14 f_b c_dark fl hwork_code"%>
|
时间
|
||||||
|
</li>
|
||||||
|
<li class="mr5 w40 ml15">
|
||||||
|
<%= link_to "教师",@show_all ? student_work_index_path(:homework => @homework.id,:order => "teacher_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "f14 f_b c_dark fl"%>
|
||||||
<% if @show_all && @order == "teacher_score"%>
|
<% if @show_all && @order == "teacher_score"%>
|
||||||
<a href="javascript:void(0);" class="<%= @score == 'desc' ? 'st_up' : 'st_down'%>" ></a>
|
<a href="javascript:void(0);" class="<%= @score == 'desc' ? 'st_up' : 'st_down'%>" ></a>
|
||||||
<% end%>
|
<% end%>
|
||||||
</li>
|
</li>
|
||||||
<li class="mr5 w70">
|
<li class="mr5 w40 ml20">
|
||||||
<%= link_to "教辅评分",@show_all ? student_work_index_path(:homework => @homework.id,:order => "teaching_asistant_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "f14 f_b c_dark fl hwork_code"%>
|
<%= link_to "教辅",@show_all ? student_work_index_path(:homework => @homework.id,:order => "teaching_asistant_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "f14 f_b c_dark fl"%>
|
||||||
<% if @show_all && @order == "teaching_asistant_score"%>
|
<% if @show_all && @order == "teaching_asistant_score"%>
|
||||||
<a href="javascript:void(0);" class="<%= @score == 'desc' ? 'st_up' : 'st_down'%>" ></a>
|
<a href="javascript:void(0);" class="<%= @score == 'desc' ? 'st_up' : 'st_down'%>" ></a>
|
||||||
<% end%>
|
<% end%>
|
||||||
</li>
|
</li>
|
||||||
<li class="mr5 ml15 w40">
|
<li class="mr5 ml10 w40">
|
||||||
<%= link_to "匿评",@show_all ? student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "f14 f_b c_dark fl"%>
|
<%= link_to "匿评",@show_all ? student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "f14 f_b c_dark fl"%>
|
||||||
<% if @show_all && @order == "student_score"%>
|
<% if @show_all && @order == "student_score"%>
|
||||||
<a href="javascript:void(0);" class="<%= @score == 'desc' ? 'st_up' : 'st_down'%>" ></a>
|
<a href="javascript:void(0);" class="<%= @score == 'desc' ? 'st_up' : 'st_down'%>" ></a>
|
||||||
<% end%>
|
<% end%>
|
||||||
</li>
|
</li>
|
||||||
<li class="ml30">
|
<li class="ml20">
|
||||||
<%= link_to "成绩",@show_all ? student_work_index_path(:homework => @homework.id,:order => "final_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "f14 f_b c_dark fl"%>
|
<%= link_to "成绩",@show_all ? student_work_index_path(:homework => @homework.id,:order => "final_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "f14 f_b c_dark fl"%>
|
||||||
<% if @show_all && @order == "final_score"%>
|
<% if @show_all && @order == "final_score"%>
|
||||||
<a href="javascript:void(0);" class="<%= @score == 'desc' ? 'st_up' : 'st_down'%>" ></a>
|
<a href="javascript:void(0);" class="<%= @score == 'desc' ? 'st_up' : 'st_down'%>" ></a>
|
||||||
|
|
|
@ -100,7 +100,6 @@ a:hover.grey_btn{ background:#717171; color:#fff;}
|
||||||
.f_14{ font-size:14px;}
|
.f_14{ font-size:14px;}
|
||||||
.c_dblue{ color:#3e6d8e;}
|
.c_dblue{ color:#3e6d8e;}
|
||||||
.w90{width:90px;}
|
.w90{width:90px;}
|
||||||
.w40{width:40px;}
|
|
||||||
.ml10{margin-left:10px;}
|
.ml10{margin-left:10px;}
|
||||||
.resource{ width:670px;}
|
.resource{ width:670px;}
|
||||||
.re_top{width:660px; height:40px; background:#eaeaea; padding:5px;}
|
.re_top{width:660px; height:40px; background:#eaeaea; padding:5px;}
|
||||||
|
@ -661,6 +660,9 @@ a:hover.down_btn{ background:#14ad5a; color:#fff; border:1px solid #14ad5a;}
|
||||||
.to_top{width: 19px;height: 74px;position: fixed;top: 50px;right: 1px;color: white;background: #15bccf; line-height: 1.2; padding-top: 10px;padding-left: 5px;font-size: 14px;cursor: pointer;}
|
.to_top{width: 19px;height: 74px;position: fixed;top: 50px;right: 1px;color: white;background: #15bccf; line-height: 1.2; padding-top: 10px;padding-left: 5px;font-size: 14px;cursor: pointer;}
|
||||||
.hwork_num_ab{ width:120px; display:block; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;min-height: 1px;}
|
.hwork_num_ab{ width:120px; display:block; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;min-height: 1px;}
|
||||||
.hwork_name_ab{ display:block;width:340px; overflow: hidden;white-space: nowrap; text-overflow:ellipsis;min-height: 1px;}
|
.hwork_name_ab{ display:block;width:340px; overflow: hidden;white-space: nowrap; text-overflow:ellipsis;min-height: 1px;}
|
||||||
|
.hwork_time{ display:block;width:40px; overflow: hidden;white-space: nowrap; text-overflow:ellipsis;min-height: 1px;}
|
||||||
|
.hwork_time_c{width:40px;color: #6d6d6d}
|
||||||
|
.hwork_score{ width:62px; text-align:center; }
|
||||||
.absence{width: 50px;text-align: center;}
|
.absence{width: 50px;text-align: center;}
|
||||||
/* 评分插件 */
|
/* 评分插件 */
|
||||||
input#score{ width:40px;}
|
input#score{ width:40px;}
|
||||||
|
|
|
@ -58,6 +58,7 @@ h4{ font-size:14px; color:#3b3b3b;}
|
||||||
.ml8{ margin-left:8px;}
|
.ml8{ margin-left:8px;}
|
||||||
.ml10{ margin-left:10px;}
|
.ml10{ margin-left:10px;}
|
||||||
.ml15{ margin-left:15px;}
|
.ml15{ margin-left:15px;}
|
||||||
|
.ml16{ margin-left: 16px;}
|
||||||
.ml20{ margin-left:20px;}
|
.ml20{ margin-left:20px;}
|
||||||
.ml35{margin-left: 35px;}
|
.ml35{margin-left: 35px;}
|
||||||
.ml40{ margin-left:40px;}
|
.ml40{ margin-left:40px;}
|
||||||
|
@ -90,6 +91,7 @@ h4{ font-size:14px; color:#3b3b3b;}
|
||||||
.w20{ width:20px;}
|
.w20{ width:20px;}
|
||||||
.w40{width: 40px;}
|
.w40{width: 40px;}
|
||||||
.w45{ width: 45px;}
|
.w45{ width: 45px;}
|
||||||
|
.w50{ width:50px;}
|
||||||
.w60{ width:60px;}
|
.w60{ width:60px;}
|
||||||
.w70{ width:70px;}
|
.w70{ width:70px;}
|
||||||
.w90{ width:90px;}
|
.w90{ width:90px;}
|
||||||
|
|
Loading…
Reference in New Issue