作品列表界面
This commit is contained in:
parent
891c22762f
commit
1119840e25
|
@ -1,22 +1,23 @@
|
||||||
<!-- 作品列表,显示某一个作品的信息 -->
|
<!-- 作品列表,显示某一个作品的信息 -->
|
||||||
<ul class="hwork_ul <%= cycle("b_grey", "") %>" id="student_work_<%= student_work.id%>">
|
<ul class="hwork_ul <%= cycle("b_grey", "") %>" id="student_work_<%= student_work.id%>">
|
||||||
<li style="min-height: 1px;width: 65px;">
|
<li class="hwork_num">
|
||||||
<% student_id = student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id%>
|
<span>
|
||||||
<%= link_to student_id,"javascript:void(0)",:class => "c_grey hwork_center",:title => student_id%>
|
<%= student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id%>
|
||||||
|
</span>
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li class=" hwork_name ">
|
||||||
<%= link_to student_work.user.show_name,user_path(student_work.user),:class => "c_blue02 hwork_name",:title => student_work.user.show_name%>
|
<%= link_to student_work.user.show_name,user_path(student_work.user),:title => student_work.user.show_name%>
|
||||||
</li>
|
</li>
|
||||||
<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'%>">
|
<li class=" hwork_code <%= student_work.teacher_score.nil? ? 'c_grey' : 'c_red'%> mr18">
|
||||||
<%= student_work.teacher_score.nil? ? "--" : format("%.2f",student_work.teacher_score)%>
|
<%= student_work.teacher_score.nil? ? "--" : format("%.2f",student_work.teacher_score)%>
|
||||||
</li>
|
</li>
|
||||||
<li class=" hwork_code <%= student_work.teaching_asistant_score.nil? ? 'c_grey' : 'c_red'%>">
|
<li class=" hwork_code <%= student_work.teaching_asistant_score.nil? ? 'c_grey' : 'c_red'%> mr18">
|
||||||
<%= student_work.teaching_asistant_score.nil? ? "--" : format("%.2f",student_work.teaching_asistant_score)%>
|
<%= student_work.teaching_asistant_score.nil? ? "--" : format("%.2f",student_work.teaching_asistant_score)%>
|
||||||
</li>
|
</li>
|
||||||
<li class=" hwork_code02 <%= student_work.student_score.nil? ? 'c_grey' : 'c_red'%> student_score_info">
|
<li class=" hwork_code02 <%= student_work.student_score.nil? ? 'c_grey' : 'c_red'%> mr18 student_score_info" >
|
||||||
<%= student_work.student_score.nil? ? "--" : format("%.2f",student_work.student_score)%>
|
<%= student_work.student_score.nil? ? "--" : format("%.2f",student_work.student_score)%>
|
||||||
<% unless student_work.student_score.nil?%>
|
<% unless student_work.student_score.nil?%>
|
||||||
<span class="c_blue">
|
<span class="c_blue">
|
||||||
|
@ -30,7 +31,7 @@
|
||||||
</div>
|
</div>
|
||||||
<% end%>
|
<% end%>
|
||||||
</li>
|
</li>
|
||||||
<li class=" hwork_code02 <%= student_work.final_score.nil? ? 'c_grey' : 'c_red'%>">
|
<li class=" hwork_code <%= 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("%.2f",student_work.final_score)%>
|
||||||
</li>
|
</li>
|
||||||
<div class="cl"></div>
|
<div class="cl"></div>
|
||||||
|
|
|
@ -1,32 +1,32 @@
|
||||||
<li class="w70 ">
|
<li class="hwork_num ">
|
||||||
<span href="javascript:void(0);" class="c_dark f14 fb fl ">学号</span>
|
<a href="javascript:void(0);" class=" f14 f_b c_dark fl" >学号</a>
|
||||||
</li>
|
</li>
|
||||||
<li class="w70">
|
<li class=" hwork_name f14 fb c_dark">
|
||||||
<span class="c_dark f14 fb fl ">学生姓名</span>
|
学生姓名
|
||||||
</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="w70 mr5" >
|
<li class="mr5 w70">
|
||||||
<%= link_to "教师评分",@show_all ? student_work_index_path(:homework => @homework.id,:order => "teacher_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "c_dark f14 fb fl"%>
|
<%= 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"%>
|
||||||
<% 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="w70 mr5">
|
<li class="mr5 w70">
|
||||||
<%= link_to "教辅评分",@show_all ? student_work_index_path(:homework => @homework.id,:order => "teaching_asistant_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "c_dark f14 fb fl"%>
|
<%= 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"%>
|
||||||
<% 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="w60 mr5 ml10">
|
<li class="mr5 ml15 w40">
|
||||||
<%= link_to "匿评",@show_all ? student_work_index_path(:homework => @homework.id,:order => "student_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "c_dark f14 fb 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="w40 ml10" id="final_sort">
|
<li class="ml30">
|
||||||
<%= link_to "成绩",@show_all ? student_work_index_path(:homework => @homework.id,:order => "final_score", :sort => @score, :name => @name) : "javascript:void(0)",:class => "c_dark f14 fb 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>
|
||||||
<% end%>
|
<% end%>
|
||||||
|
|
|
@ -630,14 +630,17 @@ a:hover.icon_add{background:url(images/icons.png) -20px -310px no-repeat;}
|
||||||
.w300{ width:300px;}
|
.w300{ width:300px;}
|
||||||
.w80{ width:80px;}
|
.w80{ width:80px;}
|
||||||
.t_c{ text-align:center;}
|
.t_c{ text-align:center;}
|
||||||
.hwork_tit{ width:240px; float:left; }
|
|
||||||
.hwork_tit a{ width:255px; display:block; overflow:hidden; white-space: nowrap; text-overflow:ellipsis; }
|
.hwork_tit{ width:210px; float:left; }
|
||||||
|
.hwork_tit a{ width:205px; display:block; overflow:hidden; white-space: nowrap; text-overflow:ellipsis; }
|
||||||
|
.hwork_code{ width:56px; text-align:center; }
|
||||||
|
.hwork_code02{ width:60px; text-align:center; }
|
||||||
.hwork_tit_e{ width:440px; float:left; }
|
.hwork_tit_e{ width:440px; float:left; }
|
||||||
.hwork_tit_e a{ width:455px; display:block; overflow:hidden; white-space: nowrap; text-overflow:ellipsis; }
|
.hwork_tit_e a{ width:455px; display:block; overflow:hidden; white-space: nowrap; text-overflow:ellipsis; }
|
||||||
.hwork_code{ width:60px; text-align:center; margin-right:15px;}
|
.hwork_num{ width:90px; display:block; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;min-height: 1px;}
|
||||||
.hwork_code02{ width:60px; text-align:center; margin-right:10px;}
|
.mr18{ margin-right:18px;}
|
||||||
a.hwork_center{ display:block; width:60px; margin-right:5px;overflow: hidden; white-space: nowrap; text-overflow:ellipsis;}
|
a.hwork_center{ display:block; width:60px; margin-right:5px;overflow: hidden; white-space: nowrap; text-overflow:ellipsis;}
|
||||||
a.hwork_name{ display:block;width:65px; margin-right:10px;overflow: hidden;white-space: nowrap; text-overflow:ellipsis;min-height: 1px;}
|
.hwork_name{ display:block;width:80px; overflow: hidden;white-space: nowrap; text-overflow:ellipsis;min-height: 1px;}
|
||||||
.show_hwork{ border:2px solid #64bdd9; width:646px; padding:10px; color:#666666; padding-bottom:0px; }
|
.show_hwork{ border:2px solid #64bdd9; width:646px; padding:10px; color:#666666; padding-bottom:0px; }
|
||||||
.show_hwork ul li{ margin-bottom:5px;}
|
.show_hwork ul li{ margin-bottom:5px;}
|
||||||
.show_hwork_arrow{ position:relative; top:2px; left:25px;background:url(../images/course/arrow_up.jpg) 0 0 no-repeat; width:20px; height:11px;}
|
.show_hwork_arrow{ position:relative; top:2px; left:25px;background:url(../images/course/arrow_up.jpg) 0 0 no-repeat; width:20px; height:11px;}
|
||||||
|
|
|
@ -59,6 +59,7 @@ h4{ font-size:14px; color:#3b3b3b;}
|
||||||
.ml10{ margin-left:10px;}
|
.ml10{ margin-left:10px;}
|
||||||
.ml15{ margin-left:15px;}
|
.ml15{ margin-left:15px;}
|
||||||
.ml20{ margin-left:20px;}
|
.ml20{ margin-left:20px;}
|
||||||
|
.ml35{margin-left: 35px;}
|
||||||
.ml40{ margin-left:40px;}
|
.ml40{ margin-left:40px;}
|
||||||
.ml45{ margin-left:45px;}
|
.ml45{ margin-left:45px;}
|
||||||
.ml55{ margin-left:55px;}
|
.ml55{ margin-left:55px;}
|
||||||
|
@ -86,6 +87,7 @@ h4{ font-size:14px; color:#3b3b3b;}
|
||||||
.mb20{ margin-bottom:20px;}
|
.mb20{ margin-bottom:20px;}
|
||||||
.pl15{ padding-left:15px;}
|
.pl15{ padding-left:15px;}
|
||||||
.w20{ width:20px;}
|
.w20{ width:20px;}
|
||||||
|
.w40{width: 40px;}
|
||||||
.w45{ width: 45px;}
|
.w45{ width: 45px;}
|
||||||
.w60{ width:60px;}
|
.w60{ width:60px;}
|
||||||
.w70{ width:70px;}
|
.w70{ width:70px;}
|
||||||
|
|
Loading…
Reference in New Issue