作品列表学号显示为灰色,取消连接;作品名称显示为绿色,学生姓名靠左对齐

redis_cache
sw 10 years ago
parent 4e8587ac43
commit 6992a50f64

@ -4,9 +4,9 @@
<li style="min-height: 1px;width: 65px;">
<% if is_my_work%>
<% student_id = student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id%>
<%= link_to student_id,user_path(student_work.user),:class => "c_blue02 hwork_center",:title => student_id%>
<%= link_to student_id,"javascript:void(0)",:class => "c_grey hwork_center",:title => student_id%>
<% else%>
<%= link_to "--", "javascript:void(0)",:class => "c_blue02 hwork_center"%>
<%= link_to "--", "javascript:void(0)",:class => "c_grey hwork_center"%>
<% end%>
</li>
<li>
@ -17,7 +17,7 @@
<% end%>
</li>
<li class=" hwork_tit_e" style="width: 440px">
<%= link_to student_work.name, student_work_path(student_work),:remote => true, :title => student_work.name%>
<%= link_to student_work.name, student_work_path(student_work),:remote => true, :title => student_work.name, :class => "c_blue02"%>
</li>
<% my_score = student_work_score(student_work,User.current) %>
<li class=" hwork_code <%= my_score.nil? ? 'c_grey' : 'c_red'%>">

@ -2,13 +2,13 @@
<ul class="hwork_ul <%= cycle("b_grey", "") %>" id="student_work_<%= student_work.id%>">
<li style="min-height: 1px;width: 65px;">
<% student_id = student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id%>
<%= link_to student_id,user_path(student_work.user),:class => "c_blue02 hwork_center",:title => student_id%>
<%= link_to student_id,"javascript:void(0)",:class => "c_grey hwork_center",:title => student_id%>
</li>
<li>
<%= link_to student_work.user.show_name,user_path(student_work.user),:class => "c_blue02 hwork_name",:title => student_work.user.show_name%>
</li>
<li class=" hwork_tit">
<%= link_to student_work.name, student_work_path(student_work),:remote => true,:title => student_work.name%>
<%= link_to student_work.name, student_work_path(student_work),:remote => true,:title => student_work.name, :class => "c_blue02"%>
</li>
<li class=" hwork_code <%= student_work.teacher_score.nil? ? 'c_grey' : 'c_red'%>">
<%= student_work.teacher_score.nil? ? "--" : format("%.2f",student_work.teacher_score)%>

@ -636,8 +636,8 @@ a:hover.icon_add{background:url(images/icons.png) -20px -310px no-repeat;}
.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_code02{ width:60px; text-align:center; margin-right:10px;}
a.hwork_center{ display:block; width:60px; text-align:center; margin-right:5px;overflow: hidden; white-space: nowrap; text-overflow:ellipsis;}
a.hwork_name{ display:block;width:65px; text-align:center; margin-right:10px;overflow: hidden;white-space: nowrap; text-overflow:ellipsis;min-height: 1px;}
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;}
.show_hwork{ border:2px solid #64bdd9; width:646px; padding:10px; color:#666666; padding-bottom:0px; }
.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;}

Loading…
Cancel
Save